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