src/Core/Core.php
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;
    }
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;
    }
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 ; }
With any parameters set, will record a CMS log entry.
Without parameters returns the CMS Logger instance.

@param null|string|array $level   if $message is set as non-array, type, otherwise, if string, the message
@param null|string|array $message if an array and $type was the message, the extra data, otherwise the message
@param null|array        $extra   only used if neither $type nor $message are arrays
@return LoggerInterface
With any parameters set will record a CMS log entry . Without parameters returns the CMS Logger instance .