2020-08-27 12:31:16 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The Null logger is used, when logging is disabled. It does not log at all
|
|
|
|
* but complies with the LoggerInterface.
|
|
|
|
*
|
2020-09-11 14:11:10 +03:00
|
|
|
* @package WooCommerce\WooCommerce\Logging\Logger
|
2020-08-27 12:31:16 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-09-11 14:11:10 +03:00
|
|
|
namespace WooCommerce\WooCommerce\Logging\Logger;
|
2020-08-27 12:31:16 +03:00
|
|
|
|
|
|
|
use Psr\Log\LoggerInterface;
|
|
|
|
use Psr\Log\LoggerTrait;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class NullLogger
|
|
|
|
*/
|
|
|
|
class NullLogger implements LoggerInterface {
|
|
|
|
|
|
|
|
|
|
|
|
use LoggerTrait;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Logs a message. Since its a NullLogger, it does not log at all.
|
|
|
|
*
|
|
|
|
* @param mixed $level The logging level.
|
|
|
|
* @param string $message The message.
|
|
|
|
* @param array $context The context.
|
|
|
|
*/
|
|
|
|
public function log( $level, $message, array $context = array() ) {
|
|
|
|
}
|
|
|
|
}
|