public function log($level = null, $message = null, $extra = null)
    {
        /** @var LoggerInterface $logger */
        $logger = $this->app[Component::LOG];

        // If parameters are set, enter a log message before returning the logger
        if (null !== $level || null !== $message) {

            list($level, $message, $extra) = $this->normalizeMonologParameters($level, $message, $extra);

            $logger->log($level, $message, $extra);
        }

        return $logger;
    }