class Soda::Logger
Public Class Methods
new(*args, **kwargs)
click to toggle source
Calls superclass method
# File lib/soda/logger.rb, line 31 def initialize(*args, **kwargs) super self.formatter = Formatter.new end
Public Instance Methods
with(*context) { || ... }
click to toggle source
# File lib/soda/logger.rb, line 37 def with(*context) ctx, formatter.context = formatter.context, (formatter.context + context) yield ensure formatter.context = ctx end