Class: ApiNotify::ActiveRecord::Logger

Inherits:
Logger
  • Object
show all
Defined in:
lib/api_notify/active_record/logger.rb

Instance Method Summary collapse

Instance Method Details

#format_message(severity, timestamp, progname, msg) ⇒ Object



6
7
8
# File 'lib/api_notify/active_record/logger.rb', line 6

def format_message(severity, timestamp, progname, msg)
  "#{timestamp.to_formatted_s(:db)} #{severity} #{msg}\n"
end