Class: Pallets::Logger

Inherits:
Logger
  • Object
show all
Defined in:
lib/pallets/logger.rb

Defined Under Namespace

Modules: Formatters

Instance Method Summary collapse

Instance Method Details

#with_metadata(hash) ⇒ Object



17
18
19
20
21
22
# File 'lib/pallets/logger.rb', line 17

def (hash)
  Thread.current[:pallets_log_metadata] = hash
  yield
ensure
  Thread.current[:pallets_log_metadata] = nil
end