src/LoggedClassTrait.php
protected function updateLog($level, $message, array $context = array())
    {
        if ($this->logger instanceof Logger) {
            $this->logger->$level($message, $context);

            $message_logged = true;
        } else {
            $message_logged = false;
        }

        return $message_logged;
    }
protected function updateLog($level, $message, array $context = array())
    {
        if ($this->logger instanceof Logger) {
            $this->logger->$level($message, $context);

            $message_logged = true;
        } else {
            $message_logged = false;
        }

        return $message_logged;
    }
protected function updateLog ( $ level , $ message , array $ context = array ( ) ) { if ( $ this -> logger instanceof Logger ) { $ this -> logger -> $ level ( $ message , $ context ) ; $ message_logged = true ; } else { $ message_logged = false ; } return $ message_logged ; }
If it exists, logs the message at the supplied level using the set Logger

@param string $level     The log level for the message
@param string $message   The message to be logged

@return bool             Returns true if the message was logged
returns false if the message was not logged
If it exists logs the message at the supplied level using the set Logger