Class: UCB::Rails::Security::Logger::Formatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/ucb_rails_security_logger.rb

Constant Summary collapse

Format =
"[%s#%d] %5s -- %s: %s\n"

Instance Method Summary collapse

Instance Method Details

#call(severity, time, progname, msg) ⇒ Object



25
26
27
# File 'lib/ucb_rails_security_logger.rb', line 25

def call(severity, time, progname, msg)
  Format % [format_datetime(time), $$, severity, progname, msg2str(msg)]
end