2018-09-26 10:41:28 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Dummy Logger implements WC_Logger_Interface.
|
|
|
|
*/
|
|
|
|
class Dummy_WC_Logger implements WC_Logger_Interface {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Do nothing.
|
|
|
|
*
|
|
|
|
* @param string $handle
|
|
|
|
* @param string $message
|
|
|
|
* @param string $level
|
|
|
|
*
|
|
|
|
* @return bool|void
|
|
|
|
*/
|
|
|
|
public function add( $handle, $message, $level = WC_Log_Levels::NOTICE ) {
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Do nothing.
|
|
|
|
*
|
|
|
|
* @param string $level
|
|
|
|
* @param string $message
|
|
|
|
* @param array $context
|
|
|
|
*/
|
2018-09-26 13:53:52 +00:00
|
|
|
public function log( $level, $message, $context = array() ) {
|
2018-09-26 10:41:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Do nothing.
|
|
|
|
*
|
|
|
|
* @param string $message
|
|
|
|
* @param array $context
|
|
|
|
*/
|
2018-09-26 13:53:52 +00:00
|
|
|
public function emergency( $message, $context = array() ) {
|
2018-09-26 10:41:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Do nothing.
|
|
|
|
*
|
|
|
|
* @param string $message
|
|
|
|
* @param array $context
|
|
|
|
*/
|
2018-09-26 13:53:52 +00:00
|
|
|
public function alert( $message, $context = array() ) {
|
2018-09-26 10:41:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Do nothing.
|
|
|
|
*
|
|
|
|
* @param string $message
|
|
|
|
* @param array $context
|
|
|
|
*/
|
2018-09-26 13:53:52 +00:00
|
|
|
public function critical( $message, $context = array() ) {
|
2018-09-26 10:41:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Do nothing.
|
|
|
|
*
|
|
|
|
* @param string $message
|
|
|
|
* @param array $context
|
|
|
|
*/
|
2018-09-26 13:53:52 +00:00
|
|
|
public function error( $message, $context = array() ) {
|
2018-09-26 10:41:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Do nothing.
|
|
|
|
*
|
|
|
|
* @param string $message
|
|
|
|
* @param array $context
|
|
|
|
*/
|
2018-09-26 13:53:52 +00:00
|
|
|
public function warning( $message, $context = array() ) {
|
2018-09-26 10:41:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Do nothing.
|
|
|
|
*
|
|
|
|
* @param string $message
|
|
|
|
* @param array $context
|
|
|
|
*/
|
2018-09-26 13:53:52 +00:00
|
|
|
public function notice( $message, $context = array() ) {
|
2018-09-26 10:41:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Do nothing.
|
|
|
|
*
|
|
|
|
* @param string $message
|
|
|
|
* @param array $context
|
|
|
|
*/
|
2018-09-26 13:53:52 +00:00
|
|
|
public function info( $message, $context = array() ) {
|
2018-09-26 10:41:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Do nothing.
|
|
|
|
*
|
|
|
|
* @param string $message
|
|
|
|
* @param array $context
|
|
|
|
*/
|
2018-09-26 13:53:52 +00:00
|
|
|
public function debug( $message, $context = array() ) {
|
2018-09-26 10:41:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|