~armagetronad-ap/armagetronad/php_server_framework

« back to all changes in this revision

Viewing changes to src/tron/debug.php

  • Committer: zodiacsohma1 at gmail
  • Date: 2013-11-01 12:25:26 UTC
  • Revision ID: zodiacsohma1@gmail.com-20131101122526-m2z6e4en2mwc2qdo
Forgot to fix the time format of error and debug logs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
***************************************************************************
25
25
 
26
 
*/
 
26
*/
27
27
 
28
28
 
29
29
//!> Output the debug message to all players who enabled debug for themselves
51
51
//!> Error log (doesn't apply so far)
52
52
function errorLog($message)
53
53
{
54
 
    $line = "[".date("d-D/M/Y =|= G:i A")."] ".$message."\n";
 
54
    $line = "[".date("d-D/M/Y G:i A")."] ".$message."\n";
55
55
    file_put_contents("./logs/error_log.txt", $line, FILE_APPEND);
56
56
}
57
57
 
58
58
//!> Debug Log
59
59
function debugLog($message)
60
60
{
61
 
    $line = "[".date("d-D/M/Y =|= G:i A")."] ".$message."\n";
 
61
    $line = "[".date("d-D/M/Y G:i A")."] ".$message."\n";
62
62
    file_put_contents("./logs/debug_log.txt", $line, FILE_APPEND);
63
63
}
64
64
?>
 
 
b'\\ No newline at end of file'