Skip to content

Latest commit

 

History

History
84 lines (55 loc) · 1.41 KB

core_eep_log.md

File metadata and controls

84 lines (55 loc) · 1.41 KB

Core - eepLog

A logging class based on "eZLog class" - see /lib/ezfile/classes/ezlog.php.

Note: eepLog methods are not static.

Public

Private

eepLog

Constructor method

Parameters:

  • $path String
  • $file String
$eepLogger = new eepLog( eepSetting::LogFolder, eepSetting::LogFile );

Report

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

setPath

Sets the log file path.

Parameters:

  • $path String

setFile

Sets the log file name.

Parameters:

  • $file String

setMaxLogRotateFiles

Set the maximum amount of rotation log files before deletion occurs.

Parameters:

  • $maxLogRotateFiles Integer

setMaxLogFileSize

Set the maximum log file size.

Parameters:

  • setMaxLogFileSize Integer; (in bytes)

write

Private Writes the log message to the log file. Triggers log rotation as required.

Parameters:

  • $message String

rotateLog

Private Handles log file rotation and cleanup.

Parameters:

  • $fileName String

Return:

  • Boolean