class Pallets::Logger

Public Instance Methods

with_metadata(hash) { || ... } click to toggle source
# File lib/pallets/logger.rb, line 16
def with_metadata(hash)
  Thread.current[:pallets_log_metadata] = hash
  yield
ensure
  Thread.current[:pallets_log_metadata] = nil
end