Method: Logging::MappedDiagnosticContext#update

Defined in:
lib/logging/diagnostic_context.rb

#update(hash) ⇒ Object

Public: Add all the key/value pairs from the given hash to the current mapped diagnostic context. The keys will be converted to strings. Existing keys of the same name will be overwritten.

hash - The Hash of values to add to the current context.

Returns this context.



86
87
88
89
90
# File 'lib/logging/diagnostic_context.rb', line 86

def update( hash )
  clear_context
  sanitize(hash, peek)
  self
end