Automattic\WooCommerce\EmailEditor\Engine\Logger

Email_Editor_Logger_Interface{}interfaceWC 1.0

Interface for email editor loggers.

Хуков нет.

Использование

$Email_Editor_Logger_Interface = new Email_Editor_Logger_Interface();
// use class methods

Методы

  1. public alert( string $message, array $context = array() )
  2. public critical( string $message, array $context = array() )
  3. public debug( string $message, array $context = array() )
  4. public emergency( string $message, array $context = array() )
  5. public error( string $message, array $context = array() )
  6. public info( string $message, array $context = array() )
  7. public log( string $level, string $message, array $context = array() )
  8. public notice( string $message, array $context = array() )
  9. public warning( string $message, array $context = array() )

Код 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;
}