1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-10 07:06:40 +02: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

@@ -332,11 +332,11 @@ 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);
}
/**