Sha256: 070cca43b053d756d13f5bb6095aa6299c650e21d8474eaa2144ed64eebafc38
Contents?: true
Size: 756 Bytes
Versions: 2
Compression:
Stored size: 756 Bytes
Contents
module Le module Host def self.new(token, region, local, debug, ssl, datahub_endpoint, host_id, custom_host, udp_port, use_data_endpoint) Le::Host::CONNECTION.new(token, region, local, debug, ssl, datahub_endpoint, host_id, custom_host, udp_port, use_data_endpoint) end module InstanceMethods def formatter proc do |severity, datetime, _, msg| message = "#{datetime} " message << format_message(msg, severity) end end def format_message(message_in, severity) message_in = message_in.inspect unless message_in.is_a?(String) "severity=#{severity}, #{message_in.lstrip}" end end end end require File.join(File.dirname(__FILE__), 'host', 'connection')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
r7insight-2.7.6 | lib/le/host.rb |
r7insight-2.7.5 | lib/le/host.rb |