vendor/bundle/ruby/2.6.0/gems/lumberjack-1.2.8/lib/lumberjack.rb
# Contexts can be used to store tags that will be attached to all log entries in the block.
#
# If this method is called with a block, it will set a logging context for the scope of a block.
# If there is already a context in scope, a new one will be created that inherits
# all the tags of the parent context.
#
# Otherwise, it will return the current context. If one doesn't exist, it will return a new one
# but that context will not be in any scope.
Contexts can be used to store tags that will be attached to all log entries in the block.
If this method is called with a block, it will set a logging context for the scope of a block.
If there is already a context in scope, a new one will be created that inherits
all the tags of the parent context.

Otherwise, it will return the current context. If one doesn't exist, it will return a new one
but that context will not be in any scope.
Contexts can be used to store tags that will be attached to all log entries in the block . If this method is called with a block it will set a logging context for the scope of a block . If there is already a context in scope a new one will be created that inherits all the tags of the parent context . Otherwise it will return the current context . If one doesn ' t exist it will return a new one but that context will not be in any scope .
def context(&block)
      current_context = Thread.current[:lumberjack_context]
      if block
        use_context(Context.new(current_context), &block)
      else
        current_context || Context.new
      end
    end
def context ( & block ) current_context = Thread . current [ :lumberjack_context ] if block use_context ( Context . new ( current_context ) , & block ) else current_context || Context . new end end
Contexts can be used to store tags that will be attached to all log entries in the block.
Contexts can be used to store tags that will be attached to all log entries in the block .
block