Sha256: a8900e028f76d27cdf2d72f1aa33b74b8645f22eb1aa206801c89794fe6c3d74
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
require 'socket' class Logasm module Adapters class RabbitmqAdapter class MessageBuilder HOST = ::Socket.gethostname def initialize(service_name) @service_name = service_name end def build_message(metadata, level) metadata.merge({ application: @service_name, level: level, host: HOST, :@timestamp => Time.now.utc.iso8601(3) }) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
logasm-0.2.1 | lib/logasm/adapters/rabbitmq_adapter/message_builder.rb |
logasm-0.2.0 | lib/logasm/adapters/rabbitmq_adapter/message_builder.rb |