WooCommerce Code Reference

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

Properties

Methods

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

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