Pimcore\Logger::getZendLoggerPsr3Mapping PHP Метод

getZendLoggerPsr3Mapping() публичный статический Метод

public static getZendLoggerPsr3Mapping ( ) : array
Результат array
    public static function getZendLoggerPsr3Mapping()
    {
        return [\Zend_Log::DEBUG => LogLevel::DEBUG, \Zend_Log::INFO => LogLevel::INFO, \Zend_Log::NOTICE => LogLevel::NOTICE, \Zend_Log::WARN => LogLevel::WARNING, \Zend_Log::ERR => LogLevel::ERROR, \Zend_Log::CRIT => LogLevel::CRITICAL, \Zend_Log::ALERT => LogLevel::ALERT, \Zend_Log::EMERG => LogLevel::EMERGENCY];
    }

Usage Example

Пример #1
0
 /**
  * @deprecated
  * @param $level
  */
 public function setFilterPriority($level)
 {
     // legacy ZF method
     $zendLoggerPsr3Mapping = Logger::getZendLoggerPsr3Mapping();
     if (isset($zendLoggerPsr3Mapping[$level])) {
         $level = $zendLoggerPsr3Mapping[$level];
         $this->setLevel($level);
     }
 }
All Usage Examples Of Pimcore\Logger::getZendLoggerPsr3Mapping