@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * |
| 33 | 33 | * @deprecated wil be removed in 3.0. Use Spiral\Monolog\Config\MonologConfig::DEFAULT_CHANNEL |
| 34 | 34 | */ |
| 35 | - public const DEFAULT = 'default'; |
|
| 35 | + public const default = 'default'; |
|
| 36 | 36 | |
| 37 | 37 | /** @var MonologConfig */ |
| 38 | 38 | private $config; |
@@ -66,16 +66,16 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public function getLogger(string $channel = null): LoggerInterface |
| 68 | 68 | { |
| 69 | - if ($channel === null || $channel == self::DEFAULT) { |
|
| 69 | + if ($channel === null || $channel == self::default) { |
|
| 70 | 70 | if ($this->default !== null) { |
| 71 | 71 | // we should use only one default logger per system |
| 72 | 72 | return $this->default; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | return $this->default = new Logger( |
| 76 | - self::DEFAULT, |
|
| 77 | - $this->getHandlers(self::DEFAULT), |
|
| 78 | - $this->getProcessors(self::DEFAULT) |
|
| 76 | + self::default, |
|
| 77 | + $this->getHandlers(self::default), |
|
| 78 | + $this->getProcessors(self::default) |
|
| 79 | 79 | ); |
| 80 | 80 | } |
| 81 | 81 | |