class SoarAuditingFormatter::Formatter

Public Class Methods

format(level, service_id, flow_id, timestamp, message) click to toggle source
# File lib/soar_auditing_format/formatter.rb, line 8
def self.format(level, service_id, flow_id, timestamp, message)
  times = Time.parse(timestamp.to_s).utc.iso8601(3)
  sprintf(FORMAT, level, service_id, flow_id, times, message)
end
optional_field_format(key, value) click to toggle source
# File lib/soar_auditing_format/formatter.rb, line 13
def self.optional_field_format(key, value)
  sprintf(OPTIONAL_FIELD_FORMAT, key, value)
end