require 'soar_auditing_format' require 'byebug' require 'securerandom' class Main def test_sanity my_optional_field = SoarAuditingFormatter::Formatter.optional_field_format("somekey", "somevalue") puts SoarAuditingFormatter::Formatter.format(:error,'my-service-identifier',SecureRandom.hex(32),Time.now.utc.iso8601(3),"#{my_optional_field} message") end end main = Main.new main.test_sanity