Class: Semlogr::Enrichers::LogContext

Inherits:
Object
  • Object
show all
Defined in:
lib/semlogr/enrichers/log_context.rb

Instance Method Summary collapse

Instance Method Details

#enrich(log_event) ⇒ Object



6
7
8
9
10
11
# File 'lib/semlogr/enrichers/log_context.rb', line 6

def enrich(log_event)
  Context::LogContext.current
    .each do |properties|
      log_event.add_property_if_absent(properties)
    end
end