Update Logfilesname
Signed-off-by: Patrick Niebeling <patrick.niebeling@adacor.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user