Automattic\WooCommerce\EmailEditor\Engine\Logger
Email_Editor_Logger_Interface{}
Interface for email editor loggers.
Хуков нет.
Использование
$Email_Editor_Logger_Interface = new Email_Editor_Logger_Interface(); // use class methods
Методы
- public alert( string $message, array $context = array() )
- public critical( string $message, array $context = array() )
- public debug( string $message, array $context = array() )
- public emergency( string $message, array $context = array() )
- public error( string $message, array $context = array() )
- public info( string $message, array $context = array() )
- public log( string $level, string $message, array $context = array() )
- public notice( string $message, array $context = array() )
- public warning( string $message, array $context = array() )
Код Email_Editor_Logger_Interface{} Email Editor Logger Interface{} WC 10.8.1
interface Email_Editor_Logger_Interface {
/**
* System is unusable.
*
* @param string $message The log message.
* @param array $context The log context.
* @return void
*/
public function emergency( string $message, array $context = array() ): void;
/**
* Action must be taken immediately.
*
* @param string $message The log message.
* @param array $context The log context.
* @return void
*/
public function alert( string $message, array $context = array() ): void;
/**
* Critical conditions.
*
* @param string $message The log message.
* @param array $context The log context.
* @return void
*/
public function critical( string $message, array $context = array() ): void;
/**
* Runtime errors that do not require immediate action but should typically
* be logged and monitored.
*
* @param string $message The log message.
* @param array $context The log context.
* @return void
*/
public function error( string $message, array $context = array() ): void;
/**
* Exceptional occurrences that are not errors.
*
* @param string $message The log message.
* @param array $context The log context.
* @return void
*/
public function warning( string $message, array $context = array() ): void;
/**
* Normal but significant events.
*
* @param string $message The log message.
* @param array $context The log context.
* @return void
*/
public function notice( string $message, array $context = array() ): void;
/**
* Interesting events.
*
* @param string $message The log message.
* @param array $context The log context.
* @return void
*/
public function info( string $message, array $context = array() ): void;
/**
* Detailed debug information.
*
* @param string $message The log message.
* @param array $context The log context.
* @return void
*/
public function debug( string $message, array $context = array() ): void;
/**
* Logs with an arbitrary level.
*
* @param string $level The log level.
* @param string $message The log message.
* @param array $context The log context.
* @return void
*/
public function log( string $level, string $message, array $context = array() ): void;
}