Logger
class Logger
Supports the ability to produce logging.
Constants
| EMERGENCY |
Constant for alert level emergency. |
| ALERT |
Constant for alert level alert. |
| CRITICAL |
Constant for alert level critical. |
| ERROR |
Constant for alert level error. |
| WARNING |
Constant for alert level warning. |
| NOTICE |
Constant for alert level notice. |
| INFO |
Constant for alert level info. |
| DEBUG |
Constant for alert level debug. |
| private LOG_FILE_PATH |
Path to log files. |
Properties
| static private string | $logFile | Full path and name of current log file. |
Methods
static void
init()
Initializes the log file based on the environment (CLI or Web).
static void
log(string $message, string $level = self::INFO)
Performs operations for adding content to log files.
Details
at line 44
static private void
init()
Initializes the log file based on the environment (CLI or Web).
at line 68
static void
log(string $message, string $level = self::INFO)
Performs operations for adding content to log files.