Public Member Functions | |
__construct () | |
write_log ($level= 'error', $msg, $php_error=FALSE) | |
Protected Attributes | |
$_log_path | |
$_threshold = 1 | |
$_date_fmt = 'Y-m-d H:i:s' | |
$_enabled = TRUE | |
$_levels = array('ERROR' => '1', 'DEBUG' => '2', 'INFO' => '3', 'ALL' => '4') | |
__construct | ( | ) |
Constructor
write_log | ( | $level = 'error' , |
|
$msg, | |||
$php_error = FALSE |
|||
) |
Write Log File
Generally this function will be called using the global log_message() function
string | the error level |
string | the error message |
bool | whether the error is a native PHP error |