Class: Soda::Logger
- Inherits:
-
Logger
- Object
- Logger
- Soda::Logger
- Defined in:
- lib/soda/logger.rb
Defined Under Namespace
Instance Method Summary collapse
-
#initialize(*args, **kwargs) ⇒ Logger
constructor
A new instance of Logger.
- #with(*context) ⇒ Object
Constructor Details
Instance Method Details
#with(*context) ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lib/soda/logger.rb', line 37 def with(*context) ctx, formatter.context = formatter.context, (formatter.context + context) yield ensure formatter.context = ctx end |