mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 13:46:38 +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:
@@ -92,14 +92,14 @@ class Logger implements LoggerInterface
|
|||||||
* @var array $levels Logging levels
|
* @var array $levels Logging levels
|
||||||
*/
|
*/
|
||||||
protected static $levels = array(
|
protected static $levels = array(
|
||||||
100 => 'DEBUG',
|
self::DEBUG => 'DEBUG',
|
||||||
200 => 'INFO',
|
self::INFO => 'INFO',
|
||||||
250 => 'NOTICE',
|
self::NOTICE => 'NOTICE',
|
||||||
300 => 'WARNING',
|
self::WARNING => 'WARNING',
|
||||||
400 => 'ERROR',
|
self::ERROR => 'ERROR',
|
||||||
500 => 'CRITICAL',
|
self::CRITICAL => 'CRITICAL',
|
||||||
550 => 'ALERT',
|
self::ALERT => 'ALERT',
|
||||||
600 => 'EMERGENCY',
|
self::EMERGENCY => 'EMERGENCY',
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user