def severity=(level)
      if level.is_a?(String)
        severity = {
          'FATAL' => Logger::Severity::FATAL,
          'ERROR' => Logger::Severity::ERROR,
          'WARN' => Logger::Severity::WARN,
          'INFO' => Logger::Severity::INFO,
          'DEBUG' => Logger::Severity::DEBUG,
          '4' => Logger::Severity::FATAL,
          '3' => Logger::Severity::ERROR,
          '2' => Logger::Severity::WARN,
          '1' => Logger::Severity::INFO,
          '0' => Logger::Severity::DEBUG
        }[level.upcase()]
        raise "#{level} is not a severity" if severity.nil?
        level = severity
      elsif level < Logger::Severity::DEBUG || Logger::Severity::FATAL < level
        raise "#{level} is not a severity"
      end
      @logger.level = level
    end
def severity=(level)
      if level.is_a?(String)
        severity = {
          'FATAL' => Logger::Severity::FATAL,
          'ERROR' => Logger::Severity::ERROR,
          'WARN' => Logger::Severity::WARN,
          'INFO' => Logger::Severity::INFO,
          'DEBUG' => Logger::Severity::DEBUG,
          '4' => Logger::Severity::FATAL,
          '3' => Logger::Severity::ERROR,
          '2' => Logger::Severity::WARN,
          '1' => Logger::Severity::INFO,
          '0' => Logger::Severity::DEBUG
        }[level.upcase()]
        raise "#{level} is not a severity" if severity.nil?
        level = severity
      elsif level < Logger::Severity::DEBUG || Logger::Severity::FATAL < level
        raise "#{level} is not a severity"
      end
      @logger.level = level
    end
Sets the severity level of the logger. This method is executed
 asynchronously.
 @param [String|Fixnum] level value to set the severity to