Sha256: 96b9d73147ad80412e0bfed4388e2f327fadcce6d8eb0a7bfcb6e820d707443b
Contents?: true
Size: 261 Bytes
Versions: 16
Compression:
Stored size: 261 Bytes
Contents
module Msgr module Logging def log(level) Msgr.logger.send(level) { "#{self.log_name} #{yield}" } if Msgr.logger end def log_name "[#{Thread.current.object_id.to_s(16)}] <#{self.class.name}[#{object_id.to_s(16)}]>" end end end
Version data entries
16 entries across 16 versions & 1 rubygems