added time stamp to log file

This commit is contained in:
Roland Gruber 2009-05-21 16:19:12 +00:00
parent 90de70c505
commit 13472acf8d
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ function logNewMessage($level, $message) {
if (is_writable($cfg->logDestination)) {
$file = fopen($cfg->logDestination, 'a');
if ($file) {
fwrite($file, $message . "\n");
fwrite($file, date('Y-m-d H:i:s') . ': ' . $message . "\n");
fclose($file);
}
}