1
0
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:
Jordi Boggiano
2013-04-23 11:10:14 +02:00

View File

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