Sha256: 727f669f7b18806ba84ddbbacfd6ce4919d8bee76e052184c6c34c3e335283f0
Contents?: true
Size: 282 Bytes
Versions: 5
Compression:
Stored size: 282 Bytes
Contents
require 'socket' require 'semlogr/component_registry' module Semlogr module Enrichers class Host def enrich(log_event) log_event.add_property_if_absent(host: Socket.gethostname) end end ComponentRegistry.register(:enricher, host: Host) end end
Version data entries
5 entries across 5 versions & 1 rubygems