mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-13 00:24:10 +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);
|
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.
|
* Gets the name of the logging level.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user