class CallLogger::Formatter

Public Instance Methods

after(method, result, seconds: nil) click to toggle source
# File lib/call_logger/formatter.rb, line 7
def after(method, result, seconds: nil)
  "#{method} => #{result}, [Took: #{'%.6f' % seconds}s]"
end
before(method, args) click to toggle source
# File lib/call_logger/formatter.rb, line 3
def before(method, args)
  "#{method}(#{args.join(', ')})"
end
error(method, exception) click to toggle source
# File lib/call_logger/formatter.rb, line 11
def error(method, exception)
  "#{method} !! #{exception}"
end