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