mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-10 07:06:40 +02:00
Add getter to return all supported log levels.
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 array
|
||||
*/
|
||||
public static function getLevels()
|
||||
{
|
||||
return static::$levels;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name of the logging level.
|
||||
*
|
||||
|
Reference in New Issue
Block a user