for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class NullLogger
*
* @filesource NullLogger.php
* @created 04.01.2018
* @package chillerlan\Logger\Output
* @author Smiley <[email protected]>
* @copyright 2018 Smiley
* @license MIT
*/
namespace chillerlan\Logger\Output;
* This Logger can be used to avoid conditional log calls.
* Logging should always be optional, and if no logger is provided to your
* library creating a NullLogger instance to have something to throw logs at
* is a good way to avoid littering your code with `if ($this->logger) { }`
* blocks.
class NullLogger extends LogOutputAbstract{
protected function __log(string $level, string $message, array $context = null){
// go along, nothing to see here.
}