/** * Gets the 'logger' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance */ protected function getLoggerService() { $this->services['logger'] = $instance = new \Symfony\Bridge\Monolog\Logger('app'); $instance->useMicrosecondTimestamps(true); $instance->pushHandler($this->get('monolog.handler.console')); $instance->pushHandler($this->get('monolog.handler.main')); $instance->pushHandler($this->get('monolog.handler.debug')); return $instance; }
/** * Gets the 'logger' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance */ protected function getLoggerService() { $this->services['logger'] = $instance = new \Symfony\Bridge\Monolog\Logger('app'); $instance->pushProcessor(${($_ = isset($this->services['debug.log_processor']) ? $this->services['debug.log_processor'] : $this->getDebug_LogProcessorService()) && false ?: '_'}); $instance->useMicrosecondTimestamps(true); $instance->pushHandler($this->get('monolog.handler.console')); $instance->pushHandler($this->get('monolog.handler.main')); return $instance; }