CI_Log =============== Logging Class * Class name: CI_Log * Namespace: Properties ---------- ### $_log_path protected string $_log_path Path to save log files * Visibility: **protected** ### $_file_permissions protected integer $_file_permissions = 420 File permissions * Visibility: **protected** ### $_threshold protected integer $_threshold = 1 Level of logging * Visibility: **protected** ### $_threshold_array protected array $_threshold_array = array() Array of threshold levels to log * Visibility: **protected** ### $_date_fmt protected string $_date_fmt = 'Y-m-d H:i:s' Format of timestamp for log files * Visibility: **protected** ### $_file_ext protected string $_file_ext Filename extension * Visibility: **protected** ### $_enabled protected boolean $_enabled = TRUE Whether or not the logger can write to the log files * Visibility: **protected** ### $_levels protected array $_levels = array('ERROR' => 1, 'DEBUG' => 2, 'INFO' => 3, 'ALL' => 4) Predefined logging levels * Visibility: **protected** Methods ------- ### __construct void CI_Log::__construct() Class constructor * Visibility: **public** ### write_log boolean CI_Log::write_log($level, $msg) Write Log File Generally this function will be called using the global log_message() function * Visibility: **public** #### Arguments * $level **mixed** * $msg **mixed**