Permalink
Browse files

Merge remote-tracking branch 'mlabrum/master'

  • Loading branch information...
Seldaek committed Jan 11, 2013
2 parents 98d3650 + 6aac39c commit 98007939b72bded7fa4b6a2f4b3c60c7aab78950
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/Monolog/Formatter/GelfMessageFormatter.php
@@ -41,14 +41,14 @@ class GelfMessageFormatter extends NormalizerFormatter
* Translates Monolog log levels to Graylog2 log priorities.
*/
private $logLevels = array(
- Logger::DEBUG => LOG_DEBUG,
- Logger::INFO => LOG_INFO,
- Logger::NOTICE => LOG_NOTICE,
- Logger::WARNING => LOG_WARNING,
- Logger::ERROR => LOG_ERR,
- Logger::CRITICAL => LOG_CRIT,
- Logger::ALERT => LOG_ALERT,
- Logger::EMERGENCY => LOG_EMERG,
+ Logger::DEBUG => 7,
+ Logger::INFO => 6,
+ Logger::NOTICE => 5,
+ Logger::WARNING => 4,
+ Logger::ERROR => 3,
+ Logger::CRITICAL => 2,
+ Logger::ALERT => 1,
+ Logger::EMERGENCY => 0,
);
public function __construct($systemName = null, $extraPrefix = null, $contextPrefix = 'ctxt_')

0 comments on commit 9800793

Please sign in to comment.