Default_Email_Editor_Logger
in package
implements
Email_Editor_Logger_Interface
Default implementation of the email editor logger that writes to WordPress debug log.
Interfaces, Classes and Traits
- Email_Editor_Logger_Interface
- Interface for email editor loggers.
Table of Contents
- ALERT = 'alert'
- CRITICAL = 'critical'
- DEBUG = 'debug'
- EMERGENCY = 'emergency'
- Log levels.
- ERROR = 'error'
- INFO = 'info'
- NOTICE = 'notice'
- WARNING = 'warning'
- $log_file : string
- Path to the log file.
- __construct() : mixed
- Constructor.
- alert() : void
- Action must be taken immediately.
- critical() : void
- Critical conditions.
- debug() : void
- Detailed debug information.
- emergency() : void
- System is unusable.
- error() : void
- Runtime errors that do not require immediate action but should typically be logged and monitored.
- info() : void
- Interesting events.
- log() : void
- Logs with an arbitrary level.
- notice() : void
- Normal but significant events.
- warning() : void
- Exceptional occurrences that are not errors.
Constants
ALERT
public
mixed
ALERT
= 'alert'
CRITICAL
public
mixed
CRITICAL
= 'critical'
DEBUG
public
mixed
DEBUG
= 'debug'
EMERGENCY
Log levels.
public
mixed
EMERGENCY
= 'emergency'
ERROR
public
mixed
ERROR
= 'error'
INFO
public
mixed
INFO
= 'info'
NOTICE
public
mixed
NOTICE
= 'notice'
WARNING
public
mixed
WARNING
= 'warning'
Properties
$log_file
Path to the log file.
private
string
$log_file
Methods
__construct()
Constructor.
public
__construct() : mixed
Return values
mixed —alert()
Action must be taken immediately.
public
alert(string $message[, array<string|int, mixed> $context = array() ]) : void
Parameters
- $message : string
-
The log message.
- $context : array<string|int, mixed> = array()
-
The log context.
Return values
void —critical()
Critical conditions.
public
critical(string $message[, array<string|int, mixed> $context = array() ]) : void
Parameters
- $message : string
-
The log message.
- $context : array<string|int, mixed> = array()
-
The log context.
Return values
void —debug()
Detailed debug information.
public
debug(string $message[, array<string|int, mixed> $context = array() ]) : void
Parameters
- $message : string
-
The log message.
- $context : array<string|int, mixed> = array()
-
The log context.
Return values
void —emergency()
System is unusable.
public
emergency(string $message[, array<string|int, mixed> $context = array() ]) : void
Parameters
- $message : string
-
The log message.
- $context : array<string|int, mixed> = array()
-
The log context.
Return values
void —error()
Runtime errors that do not require immediate action but should typically be logged and monitored.
public
error(string $message[, array<string|int, mixed> $context = array() ]) : void
Parameters
- $message : string
-
The log message.
- $context : array<string|int, mixed> = array()
-
The log context.
Return values
void —info()
Interesting events.
public
info(string $message[, array<string|int, mixed> $context = array() ]) : void
Parameters
- $message : string
-
The log message.
- $context : array<string|int, mixed> = array()
-
The log context.
Return values
void —log()
Logs with an arbitrary level.
public
log(string $level, string $message[, array<string|int, mixed> $context = array() ]) : void
Parameters
- $level : string
-
The log level.
- $message : string
-
The log message.
- $context : array<string|int, mixed> = array()
-
The log context.
Return values
void —notice()
Normal but significant events.
public
notice(string $message[, array<string|int, mixed> $context = array() ]) : void
Parameters
- $message : string
-
The log message.
- $context : array<string|int, mixed> = array()
-
The log context.
Return values
void —warning()
Exceptional occurrences that are not errors.
public
warning(string $message[, array<string|int, mixed> $context = array() ]) : void
Parameters
- $message : string
-
The log message.
- $context : array<string|int, mixed> = array()
-
The log context.