Automattic\WooCommerce\Internal\EmailEditor
Logger::log
Logs with an arbitrary level.
Method of the class: Logger{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Logger = new Logger(); $Logger->log( $level, $message, $context ): void;
- $level(string) (required)
- The log level.
- $message(string) (required)
- The log message.
- $context(array)
- The log context.
Default:array()
Logger::log() Logger::log code WC 10.6.2
public function log( string $level, string $message, array $context = array() ): void {
if ( $this->should_handle( $level ) ) {
$this->wc_logger->log( $level, $message, $context );
}
}