def log(severity, message, time: nil)
      time ||= Time.now

      m = SumologicCloudSyslog::Message.new

      # Include authentication header
      m.structured_data << @default_structured_data

      # Adjust header with current timestamp and severity
      m.header = @default_header.dup
      m.header.severity = severity
      m.header.timestamp = time

      yield m.header if block_given?

      m.msg = message

      transport.write(m.to_s)
    end
def log(severity, message, time: nil)
      time ||= Time.now

      m = SumologicCloudSyslog::Message.new

      # Include authentication header
      m.structured_data << @default_structured_data

      # Adjust header with current timestamp and severity
      m.header = @default_header.dup
      m.header.severity = severity
      m.header.timestamp = time

      yield m.header if block_given?

      m.msg = message

      transport.write(m.to_s)
    end
Send log message with severity to Sumologic