advanced code snippet search
BenJD on 02/22/11
logging
02/22/11 10:19pm
1 person have marked this snippet as a favorite
uberdragon
Log errors to a file
class ErrorLog{ public static function recordError($error) { $stream = fopen(Config::SHELL_LIBRARY_ROOT."error_log.txt","a"); fwrite($stream,$error."\n"); fclose($stream); }}
Report this snippet Tweet
Comment:
You need to login to post a comment.