Class: Slnky::Log::Service
Instance Method Summary collapse
-
#initialize ⇒ Service
constructor
ex = @transport.exchanges ex.publish(msg(data)) if ex # only log to the exchange if it’s created puts “%s [%6s] %s” % [Time.now, data, data] if development? # log to the console if in development.
Constructor Details
#initialize ⇒ Service
ex = @transport.exchanges ex.publish(msg(data)) if ex # only log to the exchange if it’s created puts “%s [%6s] %s” % [Time.now, data, data] if development? # log to the console if in development
93 94 95 96 97 98 |
# File 'lib/slnky/log.rb', line 93 def initialize super @service = Slnky::System.pid @hostname = Slnky::System.hostname @ipaddress = Slnky::System.ipaddress end |