mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 12:47:39 +02:00
Merge remote-tracking branch 'joshuajabbour/getLevels'
This commit is contained in:
@@ -329,6 +329,16 @@ class Logger implements LoggerInterface
|
||||
return $this->addRecord(static::EMERGENCY, $message, $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all supported logging levels.
|
||||
*
|
||||
* @return assoc Array as human-readable level names => level codes.
|
||||
*/
|
||||
public static function getLevels()
|
||||
{
|
||||
return array_flip(static::$levels);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name of the logging level.
|
||||
*
|
||||
|
Reference in New Issue
Block a user