1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 21:26:43 +02:00

Merge pull request #701 from robbieaverill/feature/dont-repeat-yourself

DRY: Use constants for level codes instead of re-defining
This commit is contained in:
Jordi Boggiano
2015-12-16 18:41:23 +00:00

View File

@@ -92,14 +92,14 @@ class Logger implements LoggerInterface
* @var array $levels Logging levels
*/
protected static $levels = array(
100 => 'DEBUG',
200 => 'INFO',
250 => 'NOTICE',
300 => 'WARNING',
400 => 'ERROR',
500 => 'CRITICAL',
550 => 'ALERT',
600 => 'EMERGENCY',
self::DEBUG => 'DEBUG',
self::INFO => 'INFO',
self::NOTICE => 'NOTICE',
self::WARNING => 'WARNING',
self::ERROR => 'ERROR',
self::CRITICAL => 'CRITICAL',
self::ALERT => 'ALERT',
self::EMERGENCY => 'EMERGENCY',
);
/**