Created
April 18, 2017 14:03
-
-
Save branchzero/a145c353b1803a21195b8f124fe1d514 to your computer and use it in GitHub Desktop.
Log Something
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function log($content, $trace_code) { | |
file_put_contents(DISCUZ_ROOT.'./data/dzapp_log_'.date('Ymd').'.log', date('Y-m-d H:i:s').'::'.$trace_code.'::'.var_export($content, true).PHP_EOL, FILE_APPEND); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment