lib/irrc/logging.rb in irrc-0.1.0 vs lib/irrc/logging.rb in irrc-0.2.0

- old
+ new

@@ -7,7 +7,13 @@ end def logger @logger ||= Logger.new(STDERR).tap {|l| l.level = Logger::WARN } end + + class Logger < ::Logger + def add(severity, message = nil, progname = nil, &block) + super(severity, message, "(#{Thread.current[:id]}) #{progname}") + end + end end end