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.

{} It's a method of the class: WC_Logger_Interface{}

No Hooks.


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


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

Code of WC_Logger_Interface::add() WC 6.8.2

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