From ce5b309f96522d6080bcdeb45570da2e90ef5a56 Mon Sep 17 00:00:00 2001 From: Patrick Niebeling Date: Thu, 10 Mar 2022 09:47:52 +0100 Subject: [PATCH] Update Logfilesname Signed-off-by: Patrick Niebeling --- Logger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Logger.php b/Logger.php index be32dfa..684cd88 100644 --- a/Logger.php +++ b/Logger.php @@ -39,7 +39,7 @@ class Logger protected static $options = [ 'dateFormat' => 'd-M-Y', 'logFormat' => 'H:i:s d-M-Y', - 'logFile' => '/logs/log-{$time}.txt' + 'logFileName' => 'log' ]; private static $instance; @@ -52,7 +52,7 @@ class Logger public static function createLogFile() { $time = date(static::$options['dateFormat']); - static::$log_file = __DIR__ . static::$options['logFile']; + static::$log_file = __DIR__ . "/logs/".static::$options['logFileName']."-{$time}.log"; //Check if directory /logs exists