public function log($severity, $message, array $args = array())
    {
        if ($severity <= max($this->getLogLevel(), Log::Warning)) {
            if (count($args) > 0) {
                $message = vsprintf($message, $args);
            }
            $this->write($message, $severity);
        }
        return $message;
    }