public function handleLog(LogEvent $event)
    {
        $level = TL_ERROR === $event->getCategory() ? LogLevel::ERROR : LogLevel::INFO;
        $this->logger->log(
            $level,
            $event->getText(),
            ['contao' => new ContaoContext($event->getFunction(), $event->getCategory())]
        );
    }
public function handleLog(LogEvent $event)
    {
        $level = TL_ERROR === $event->getCategory() ? LogLevel::ERROR : LogLevel::INFO;
        $this->logger->log(
            $level,
            $event->getText(),
            ['contao' => new ContaoContext($event->getFunction(), $event->getCategory())]
        );
    }
public function handleLog ( LogEvent $ event ) { $ level = TL_ERROR === $ event -> getCategory ( ) ? LogLevel :: ERROR : LogLevel :: INFO ; $ this -> logger -> log ( $ level , $ event -> getText ( ) , [ 'contao' => new ContaoContext ( $ event -> getFunction ( ) , $ event -> getCategory ( ) ) ] ) ; }
Handle a log event.

@param LogEvent $event The event.

@return void
Handle a log event .