Skip to content

Commit adb6e01

Browse files
authored
Merge pull request #71 from blitz-php/devs
patch: suppression des espaces dans le nom des logs
2 parents debfeed + a8a5395 commit adb6e01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Debug/Logger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function __construct(bool $debug = BLITZ_DEBUG)
6868
{
6969
$this->config = (object) config('log');
7070

71-
$this->monolog = new MonologLogger($this->config->name ?? 'application');
71+
$this->monolog = new MonologLogger(str_replace(' ', '-', $this->config->name ?? 'application'));
7272

7373
foreach (($this->config->handlers ?? []) as $handler => $options) {
7474
$this->pushHandler($handler, (object) $options);

0 commit comments

Comments
 (0)