vendor/bundle/ruby/2.6.0/gems/lumberjack-1.2.8/lib/lumberjack.rb
# Set the context to use within a block.
Set the context to use within a block.
Set the context to use within a block .
def use_context(context, &block)
      current_context = Thread.current[:lumberjack_context]
      begin
        Thread.current[:lumberjack_context] = (context || Context.new)
        yield
      ensure
        Thread.current[:lumberjack_context] = current_context
      end
    end
def use_context ( context , & block ) current_context = Thread . current [ :lumberjack_context ] begin Thread . current [ :lumberjack_context ] = ( context || Context . new ) yield ensure Thread . current [ :lumberjack_context ] = current_context end end
Set the context to use within a block.
Set the context to use within a block .
context
block