Sha256: 041d5dcdad9ca1177f5fba9fc6e4bcc4c015c303f6d8caa378e37e09a794596f

Contents?: true

Size: 232 Bytes

Versions: 4

Compression:

Stored size: 232 Bytes

Contents

module Semlogr
  module Enrichers
    class Property
      def initialize(**properties)
        @properties = properties
      end

      def enrich(log_event)
        log_event.add_property(@properties)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
semlogr-0.1.3 lib/semlogr/enrichers/property.rb
semlogr-0.1.2 lib/semlogr/enrichers/property.rb
semlogr-0.1.1 lib/semlogr/enrichers/property.rb
semlogr-0.1.0 lib/semlogr/enrichers/property.rb