Class: Slnky::Log::Service

Inherits:
Base
  • Object
show all
Defined in:
lib/slnky/log.rb

Instance Method Summary collapse

Constructor Details

#initializeService

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