WC_Logger_Interface::add()publicWC 1.0

Add a log entry.

This is not the preferred method for adding log messages. Please use log() or any one of the level methods (debug(), info(), etc.). This method may be deprecated in the future.

Method of the class: WC_Logger_Interface{}

No Hooks.

Return

true|false. True if log was added, otherwise false.

Usage

$WC_Logger_Interface = new WC_Logger_Interface();
$WC_Logger_Interface->add( $handle, $message, $level );
$handle(string) (required)
File handle.
$message(string) (required)
Log message.
$level(string)
Log level.
Default: WC_Log_Levels::NOTICE

WC_Logger_Interface::add() code WC 9.4.2

public function add( $handle, $message, $level = WC_Log_Levels::NOTICE );