module Msgr::Logging
Public Instance Methods
log(level)
click to toggle source
# File lib/msgr/logging.rb, line 5 def log(level) # rubocop:disable Style/SafeNavigation - Msgr.logger can be false Msgr.logger.send(level) { "#{log_name} #{yield}" } if Msgr.logger # rubocop:enable all end
log_name()
click to toggle source
# File lib/msgr/logging.rb, line 11 def log_name "[#{Thread.current.object_id.to_s(16)}]" end