for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace RemotelyLiving\PHPCommandBus\Traits;
use Psr\Log;
trait Logger
{
use Log\LoggerAwareTrait;
protected function getLogger(): Log\LoggerInterface
if ($this->logger === null) {
$this->logger = new Log\NullLogger();
}
return $this->logger;