Pop\Log\Logger::__construct PHP 메소드

__construct() 공개 메소드

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