Sha256: 87780380665bde2aeed2401dfbb71fc3ca28c8089a635e3e44f9c13db8fba3ae
Contents?: true
Size: 242 Bytes
Versions: 91
Compression:
Stored size: 242 Bytes
Contents
# frozen_string_literal: true module Msgr module Logging def log(level) Msgr.logger.send(level) { "#{log_name} #{yield}" } if Msgr.logger end def log_name "[#{Thread.current.object_id.to_s(16)}]" end end end
Version data entries
91 entries across 91 versions & 1 rubygems