Method: Logging::NestedDiagnosticContext#context
- Defined in:
- lib/logging/diagnostic_context.rb
#context ⇒ Object
Returns the Array acting as the storage stack for this NestedDiagnosticContext. A new storage Array is created for each Thread running in the application.
363 364 365 366 367 368 369 370 |
# File 'lib/logging/diagnostic_context.rb', line 363 def context c = Thread.current.thread_variable_get(NAME) if c.nil? c = Array.new Thread.current.thread_variable_set(NAME, c) end return c end |