Method: Logging::MappedDiagnosticContext#clear
- Defined in:
- lib/logging/diagnostic_context.rb
#clear ⇒ Object
Public: Clear all mapped diagnostic information if any. This method is useful in cases where the same thread can be potentially used over and over in different unrelated contexts.
Returns the MappedDiagnosticContext.
126 127 128 129 130 |
# File 'lib/logging/diagnostic_context.rb', line 126 def clear clear_context Thread.current.thread_variable_set(STACK_NAME, nil) self end |