From a8a5395548cd3234ea4a4aa3ba3e320e6ad363c7 Mon Sep 17 00:00:00 2001 From: Dimitri Sitchet Tomkeu Date: Fri, 9 May 2025 19:02:41 +0100 Subject: [PATCH] patchM suppression des espaces dans le nom des logs --- src/Debug/Logger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Debug/Logger.php b/src/Debug/Logger.php index 6df3c7f8..9bcea8cb 100644 --- a/src/Debug/Logger.php +++ b/src/Debug/Logger.php @@ -68,7 +68,7 @@ public function __construct(bool $debug = BLITZ_DEBUG) { $this->config = (object) config('log'); - $this->monolog = new MonologLogger($this->config->name ?? 'application'); + $this->monolog = new MonologLogger(str_replace(' ', '-', $this->config->name ?? 'application')); foreach (($this->config->handlers ?? []) as $handler => $options) { $this->pushHandler($handler, (object) $options);