Sha256: eb0504b5bc75dbd7960c775606a8578cd5a2a6d0e5ca749fee7b61a7944e621f
Contents?: true
Size: 322 Bytes
Versions: 2
Compression:
Stored size: 322 Bytes
Contents
# frozen_string_literal: true require 'json' module Trifle module Logs module Formatter module Content class Json def format(scope, message) { scope: scope, content: message }.to_json end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trifle-logs-0.2.0 | lib/trifle/logs/formatter/content/json.rb |
trifle-logs-0.1.0 | lib/trifle/logs/formatter/content/json.rb |