Property | Type | Description | |
---|---|---|---|
$_date_fmt | string | Format of timestamp for log files | |
$_enabled | boolean | Whether or not the logger can write to the log files | |
$_file_ext | string | Filename extension | |
$_file_permissions | integer | File permissions | |
$_levels | array | Predefined logging levels | |
$_log_path | string | Path to save log files | |
$_threshold | integer | Level of logging | |
$_threshold_array | array | Array of threshold levels to log |
Method | Description | |
---|---|---|
__construct ( ) : void | Class constructor | |
write_log ( string $level, string $msg ) : boolean | Write Log File |
Method | Description | |
---|---|---|
_format_line ( string $level, string $date, $message ) : string | Format the log line. |
protected string $_date_fmt | ||
return | string |
protected bool $_enabled | ||
return | boolean |
protected int $_file_permissions | ||
return | integer |
protected array $_threshold_array | ||
return | array |