Pop\Log\Logger::__construct PHP Method

__construct() public method

Instantiate the logger object.
public __construct ( Pop\Log\Writer\WriterInterface $writer = null ) : Logger
$writer Pop\Log\Writer\WriterInterface
return Logger
    public function __construct(Writer\WriterInterface $writer = null)
    {
        if (null !== $writer) {
            $this->addWriter($writer);
        }
    }