Email_Editor_Logger
in package
implements
Email_Editor_Logger_Interface
Email Editor Logger class.
A wrapper that sets the logger to use. If no logger is provided, it defaults to the Default_Email_Editor_Logger.
Interfaces, Classes and Traits
- Email_Editor_Logger_Interface
- Interface for email editor loggers.
Table of Contents
- $logger : Email_Editor_Logger_Interface
- Logger instance to delegate to.
- __construct() : mixed
- Constructor.
- alert() : void
- Adds alert level log message.
- critical() : void
- Adds critical level log message.
- debug() : void
- Adds debug level log message.
- emergency() : void
- Adds emergency level log message.
- error() : void
- Adds error level log message.
- info() : void
- Adds info level log message.
- log() : void
- Logs with an arbitrary level.
- notice() : void
- Adds notice level log message.
- set_logger() : void
- Set the logger.
- warning() : void
- Adds warning level log message.
Properties
$logger
Logger instance to delegate to.
private
Email_Editor_Logger_Interface
$logger
Methods
__construct()
Constructor.
public
__construct([Email_Editor_Logger_Interface|null $logger = null ]) : mixed
Parameters
- $logger : Email_Editor_Logger_Interface|null = null
-
Logger instance.
Return values
mixed —alert()
Adds alert level log message.
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()
Adds critical level log message.
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()
Adds debug level log message.
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()
Adds emergency level log message.
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()
Adds error level log message.
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()
Adds info level log message.
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()
Adds notice level log message.
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 —set_logger()
Set the logger.
public
set_logger(Email_Editor_Logger_Interface $logger) : void
Parameters
- $logger : Email_Editor_Logger_Interface
-
Logger instance.
Return values
void —warning()
Adds warning level log message.
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.