class Semlogr::Enrichers::Property

Public Class Methods

new(**properties) click to toggle source
# File lib/semlogr/enrichers/property.rb, line 8
def initialize(**properties)
  @properties = properties
end

Public Instance Methods

enrich(log_event) click to toggle source
# File lib/semlogr/enrichers/property.rb, line 12
def enrich(log_event)
  log_event.add_property_if_absent(@properties)
end