LogService: Add a line break at the en of lines

This commit is contained in:
Olivier PEREZ 2014-12-24 23:38:44 +01:00
parent 5d8e5362f9
commit 31f62cd62d

View File

@ -14,8 +14,14 @@ class LogService {
$this->output = $output;
}
/**
* Log a message to the log file.
*
* @param $tag string A tag is used to quickly found a message when reading log file
* @param $message string some message
*/
function log($tag, $message) {
error_log('[' . $tag . '] ' . $message, 3, $this->output);
error_log('[' . $tag . '] ' . $message . "\n", 3, $this->output);
}
}