Sha256: f24ed5671a0b25dcabe24029a282b0aca765b1c8a9deb8364fce7f7ad4034bbc
Contents?: true
Size: 729 Bytes
Versions: 6
Compression:
Stored size: 729 Bytes
Contents
module Le module Host def self.new(token, local, debug, ssl, datahub_endpoint, host_id, custom_host, udp_port, use_data_endpoint) Le::Host::HTTP.new(token, 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', 'http')
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
le-2.7.6 | lib/le/host.rb |
le-2.7.5 | lib/le/host.rb |
le-2.7.4 | lib/le/host.rb |
le-2.7.3 | lib/le/host.rb |
le-2.7.2 | lib/le/host.rb |
le-2.7.1 | lib/le/host.rb |