woocommerce/tests/legacy/unit-tests/util/dummy-wc-logger.php

104 lines
1.6 KiB
PHP
Raw Normal View History

<?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() ) {
}
/**
* Do nothing.
*
* @param string $message
* @param array $context
*/
2018-09-26 13:53:52 +00:00
public function emergency( $message, $context = array() ) {
}
/**
* Do nothing.
*
* @param string $message
* @param array $context
*/
2018-09-26 13:53:52 +00:00
public function alert( $message, $context = array() ) {
}
/**
* Do nothing.
*
* @param string $message
* @param array $context
*/
2018-09-26 13:53:52 +00:00
public function critical( $message, $context = array() ) {
}
/**
* Do nothing.
*
* @param string $message
* @param array $context
*/
2018-09-26 13:53:52 +00:00
public function error( $message, $context = array() ) {
}
/**
* Do nothing.
*
* @param string $message
* @param array $context
*/
2018-09-26 13:53:52 +00:00
public function warning( $message, $context = array() ) {
}
/**
* Do nothing.
*
* @param string $message
* @param array $context
*/
2018-09-26 13:53:52 +00:00
public function notice( $message, $context = array() ) {
}
/**
* Do nothing.
*
* @param string $message
* @param array $context
*/
2018-09-26 13:53:52 +00:00
public function info( $message, $context = array() ) {
}
/**
* Do nothing.
*
* @param string $message
* @param array $context
*/
2018-09-26 13:53:52 +00:00
public function debug( $message, $context = array() ) {
}
}