summaryrefslogtreecommitdiff
path: root/src/Support/Logger.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Support/Logger.php')
-rw-r--r--src/Support/Logger.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Support/Logger.php b/src/Support/Logger.php
index c806157..b01af11 100644
--- a/src/Support/Logger.php
+++ b/src/Support/Logger.php
@@ -9,6 +9,7 @@ class Logger implements LoggerInterface
{
public static function logRequestToFile(Request $request): void
{
+ @mkdir(dirname(dirname(__DIR__)) . "/.cache/log", recursive: true);
$basePath = dirname(dirname(__DIR__)) . "/.cache/log/" . str_replace("/", "_", $request->getPathInfo());
file_put_contents(