protected function getMonologHandler() { return (new StreamHandler(storage_path('logs/lumen.log'), Logger::DEBUG))->setFormatter(new LineFormatter(null, null, true, true)); }
/** * Get the Monolog handler for the application. * * @return \Monolog\Handler\AbstractHandler */ protected function getMonologHandler() { if (env('LOG_UDP_HOST')) { return new SyslogUdpHandler(env('LOG_UDP_HOST'), env('LOG_UDP_PORT')); } // @codeCoverageIgnoreStart return parent::getMonologHandler(); // @codeCoverageIgnoreEnd }