mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 13:46:38 +02:00
Flip getLevels() response.
This commit is contained in:
@@ -331,12 +331,12 @@ class Logger implements LoggerInterface
|
||||
|
||||
/**
|
||||
* Gets all supported logging levels.
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @return assoc Array as human-readable level names => level codes.
|
||||
*/
|
||||
public static function getLevels()
|
||||
{
|
||||
return static::$levels;
|
||||
return array_flip(static::$levels);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user