Class: Trifle::Logs::Formatter::Content::Json

Inherits:
Object
  • Object
show all
Defined in:
lib/trifle/logs/formatter/content/json.rb

Instance Method Summary collapse

Instance Method Details

#format(scope, message) ⇒ Object



10
11
12
13
14
15
# File 'lib/trifle/logs/formatter/content/json.rb', line 10

def format(scope, message)
  {
    scope: scope,
    message: message
  }.to_json
end