module Lumberjack
def context(&block)
-
(Lumberjack::Context)
- The current context if called without a block.
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