Class: Kitlog::ContextualLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/kitlog.rb

Instance Method Summary collapse

Instance Method Details

#log(**kwargs) ⇒ Object



9
10
11
# File 'lib/kitlog.rb', line 9

def log(**kwargs)
  logger.info(context.merge(kwargs))
end

#with(additional_context) ⇒ Object



13
14
15
# File 'lib/kitlog.rb', line 13

def with(additional_context)
  super(context: context.merge(additional_context))
end