Class: Dynamoid::Log::Formatter::Compact

Inherits:
Object
  • Object
show all
Defined in:
lib/dynamoid/log/formatter.rb

Instance Method Summary collapse

Instance Method Details

#format(response) ⇒ Object



27
28
29
30
31
32
33
34
35
36
37
# File 'lib/dynamoid/log/formatter.rb', line 27

def format(response)
  bold = "\x1b[1m"
  reset = "\x1b[0m"

  [
    response.context.operation.name,
    bold,
    response.context.http_request.body.string,
    reset
  ].join(' ')
end