-
Notifications
You must be signed in to change notification settings - Fork 0
CI_Log
Mathieu Nayrolles edited this page Jan 20, 2016
·
1 revision
Logging Class
- Class name: CI_Log
- Namespace:
protected string $_log_path
Path to save log files
- Visibility: protected
protected integer $_file_permissions = 420
File permissions
- Visibility: protected
protected integer $_threshold = 1
Level of logging
- Visibility: protected
protected array $_threshold_array = array()
Array of threshold levels to log
- Visibility: protected
protected string $_date_fmt = 'Y-m-d H:i:s'
Format of timestamp for log files
- Visibility: protected
protected string $_file_ext
Filename extension
- Visibility: protected
protected boolean $_enabled = TRUE
Whether or not the logger can write to the log files
- Visibility: protected
protected array $_levels = array('ERROR' => 1, 'DEBUG' => 2, 'INFO' => 3, 'ALL' => 4)
Predefined logging levels
- Visibility: protected
void CI_Log::__construct()
Class constructor
- Visibility: public
boolean CI_Log::write_log($level, $msg)
Write Log File
Generally this function will be called using the global log_message() function
- Visibility: public
- $level mixed
- $msg mixed