module UU::LogContext
Attributes
context[W]
Public Instance Methods
append_context(context_)
click to toggle source
# File lib/uu/log_context.rb, line 13 def append_context(context_) self.context = context.merge(context_) end
context()
click to toggle source
# File lib/uu/log_context.rb, line 9 def context @context ||= {} end
with(context_) { || ... }
click to toggle source
# File lib/uu/log_context.rb, line 17 def with(context_) original_context = context self.context = context.merge(context_) yield ensure self.context = original_context end