Module: Qswarm::Loggable

Included in:
Agent, Broker, Listener, Speaker, Swarm
Defined in:
lib/qswarm/loggable.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.loggerObject



10
11
12
13
# File 'lib/qswarm/loggable.rb', line 10

def self.logger
  # @logger ||= Logger.new(STDOUT)
  @logger ||= GELF::Logger.new($graylog2_host, 12201, 'WAN', { :facility => $graylog2_facility })
end

Instance Method Details

#loggerObject



6
7
8
# File 'lib/qswarm/loggable.rb', line 6

def logger
  Loggable.logger
end