1
0
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:
Joshua Jabbour
2013-04-15 11:46:35 -05:00
parent 642cdf620b
commit 85dbaf9733

View File

@@ -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.
*