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())]
        );
    }