module Applicaster::Logger::ThreadContext
Constants
- KEY
Public Instance Methods
add(hash)
click to toggle source
# File lib/applicaster/logger/thread_context.rb, line 11 def add(hash) current.merge!(hash) end
clear!()
click to toggle source
# File lib/applicaster/logger/thread_context.rb, line 15 def clear! Thread.current[KEY] = HashWithIndifferentAccess.new end
current()
click to toggle source
# File lib/applicaster/logger/thread_context.rb, line 7 def current Thread.current[KEY] ||= HashWithIndifferentAccess.new end