added time stamp to log file
This commit is contained in:
parent
90de70c505
commit
13472acf8d
|
@ -174,7 +174,7 @@ function logNewMessage($level, $message) {
|
||||||
if (is_writable($cfg->logDestination)) {
|
if (is_writable($cfg->logDestination)) {
|
||||||
$file = fopen($cfg->logDestination, 'a');
|
$file = fopen($cfg->logDestination, 'a');
|
||||||
if ($file) {
|
if ($file) {
|
||||||
fwrite($file, $message . "\n");
|
fwrite($file, date('Y-m-d H:i:s') . ': ' . $message . "\n");
|
||||||
fclose($file);
|
fclose($file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue