Module: Epilog::ContextLogger
- Included in:
- Logger
- Defined in:
- lib/epilog/context_logging.rb
Instance Method Summary collapse
Instance Method Details
#pop_context ⇒ Object
16 17 18 |
# File 'lib/epilog/context_logging.rb', line 16 def pop_context formatter.pop_context end |
#push_context(context) ⇒ Object
12 13 14 |
# File 'lib/epilog/context_logging.rb', line 12 def push_context(context) formatter.push_context(context) end |
#with_context(context) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/epilog/context_logging.rb', line 5 def with_context(context) push_context(context) yield ensure pop_context end |