Phprest\ErrorHandler\Handler\Log::__construct PHP Method

__construct() public method

public __construct ( Psr\Log\LoggerInterface $logger = null )
$logger Psr\Log\LoggerInterface
    public function __construct(LoggerInterface $logger = null)
    {
        if (!is_null($logger)) {
            $this->setLogger($logger);
        }
    }