lib/msgr/logging.rb in msgr-0.4.1 vs lib/msgr/logging.rb in msgr-0.5.0

- old
+ new

@@ -1,12 +1,12 @@ module Msgr module Logging def log(level) - Msgr.logger.send(level, self.log_name) { yield } if Msgr.logger + Msgr.logger.send(level) { "#{self.log_name} #{yield}" } if Msgr.logger end def log_name - "[#{Thread.current.object_id}] #{self.to_s}" + "[#{Thread.current.object_id.to_s(16)}] <#{self.class.name}[#{object_id.to_s(16)}]>" end end end