module Epilog::ContextLogger

Public Instance Methods

pop_context() click to toggle source
# File lib/epilog/context_logging.rb, line 16
def pop_context
  formatter.pop_context
end
push_context(context) click to toggle source
# File lib/epilog/context_logging.rb, line 12
def push_context(context)
  formatter.push_context(context)
end
with_context(context) { || ... } click to toggle source
# File lib/epilog/context_logging.rb, line 5
def with_context(context)
  push_context(context)
  yield
ensure
  pop_context
end