A logging class based on "eZLog class" - see /lib/ezfile/classes/ezlog.php.
Note:
eepLog methods are not static.
Public
Private
Constructor method
Parameters:
$path
String$file
String
$eepLogger = new eepLog( eepSetting::LogFolder, eepSetting::LogFile );
Outputs log message with severity.
Parameters:
$msg
String$severity
String; (normal|error|shy|exception|bell|fatal); Default = normal
Note:
- severity
exception
will throw an exception - severity
fatal
will die
Sets the log file path.
Parameters:
$path
String
Sets the log file name.
Parameters:
$file
String
Set the maximum amount of rotation log files before deletion occurs.
Parameters:
$maxLogRotateFiles
Integer
Set the maximum log file size.
Parameters:
setMaxLogFileSize
Integer; (in bytes)
Private
Writes the log message to the log file. Triggers log rotation as required.
Parameters:
$message
String
Private
Handles log file rotation and cleanup.
Parameters:
$fileName
String
Return:
- Boolean