Class: LogWeasel::BufferedLogger
- Inherits:
-
ActiveSupport::BufferedLogger
- Object
- ActiveSupport::BufferedLogger
- LogWeasel::BufferedLogger
- 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, = nil, progname = nil, &block) super(severity, "[#{DateTime.now.strftime('%Y-%m-%d %H:%M:%S')}] #{LogWeasel::Transaction.id} #$$ #{format_severity(severity)} #{}", progname, &block) end |