1
0
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:
Joshua Jabbour 2013-04-15 12:24:24 -05:00
parent 85dbaf9733
commit 6a8154756e

View File

@ -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);
} }
/** /**