Class: LogWeasel::BufferedLogger

Inherits:
ActiveSupport::BufferedLogger
  • Object
show all
Defined in:
lib/log_weasel/buffered_logger.rb

Instance Method Summary collapse

Instance Method Details

#add(severity, message = nil, progname = nil, &block) ⇒ Object



4
5
6
# File 'lib/log_weasel/buffered_logger.rb', line 4

def add(severity, message = nil, progname = nil, &block)
  super(severity, "[#{DateTime.now.strftime('%Y-%m-%d %H:%M:%S')}] #{LogWeasel::Transaction.id} #$$ #{format_severity(severity)} #{message}", progname, &block)
end