added date and time to the logfiles

This commit is contained in:
kremsy 2014-01-10 13:21:07 +01:00
parent 26d2173fa2
commit 7f0c33e45f

View File

@ -130,10 +130,11 @@ class ManiaControl implements CommandListener {
* @param string $message
*/
public function log($message, $stripCodes = false) {
$date = date("d.M y H:i:s");
if($stripCodes) {
$message = Formatter::stripCodes($message);
}
logMessage($message);
logMessage($date . ' ' . $message);
}
/**