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;
    }