dol_syslog now strftime instead of dol_print_date
This commit is contained in:
parent
ccd9aa8059
commit
9eeaf5c3eb
@ -166,7 +166,7 @@ class mod_syslog_file extends LogHandler implements LogHandlerInterface
|
||||
$this->lastTime = $now;
|
||||
}
|
||||
|
||||
$message = dol_print_date(time(),"%Y-%m-%d %H:%M:%S").$delay." ".sprintf("%-7s", $logLevels[$content['level']])." ".sprintf("%-15s", $content['ip'])." ".($this->ident>0?str_pad('',$this->ident,' '):'').$content['message'];
|
||||
$message = strftime("%Y-%m-%d %H:%M:%S", time()).$delay." ".sprintf("%-7s", $logLevels[$content['level']])." ".sprintf("%-15s", $content['ip'])." ".($this->ident>0?str_pad('',$this->ident,' '):'').$content['message'];
|
||||
fwrite($filefd, $message."\n");
|
||||
fclose($filefd);
|
||||
@chmod($logfile, octdec(empty($conf->global->MAIN_UMASK)?'0664':$conf->global->MAIN_UMASK));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user