/** * Constructor * * Prepare this log writer. * * @param $hanlder The Analog handler * @return void */ public function __construct($handler) { $this->logger = new \Analog\Logger(); $this->logger->handler($handler); }