| @@ 103-111 (lines=9) @@ | ||
| 100 | */ |
|
| 101 | public static function unicodeSymbol($symbol, $options = null) |
|
| 102 | { |
|
| 103 | if (false === isset(self::$unicode[$symbol])) { |
|
| 104 | throw new \InvalidArgumentException( |
|
| 105 | sprintf( |
|
| 106 | 'Invalid unicode symbol specified: "%s". Expected one of (%s).', |
|
| 107 | $symbol, |
|
| 108 | implode(', ', array_keys(self::$unicode)) |
|
| 109 | ) |
|
| 110 | ); |
|
| 111 | } |
|
| 112 | ||
| 113 | $symbol = self::$unicode[$symbol]; |
|
| 114 | ||
| @@ 102-111 (lines=10) @@ | ||
| 99 | */ |
|
| 100 | public static function getLevelName($level) |
|
| 101 | { |
|
| 102 | if (isset(static::$levels[$level]) === false) { |
|
| 103 | $levelkeys = array_keys(static::$levels); |
|
| 104 | throw new \InvalidArgumentException( |
|
| 105 | sprintf( |
|
| 106 | 'Logging level "%s" is not defined, use one of: %s', |
|
| 107 | $level, |
|
| 108 | implode(', ', $levelkeys) |
|
| 109 | ) |
|
| 110 | ); |
|
| 111 | } |
|
| 112 | ||
| 113 | return static::$levels[$level]; |
|
| 114 | } |
|