Module: AMQPProcessing::Logging

Included in:
Client
Defined in:
lib/amqp-processing/logging.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



7
8
9
# File 'lib/amqp-processing/logging.rb', line 7

def logger
  @logger
end

Instance Method Details

#logObject

Returns the assigned logger, or creates a new Logger with no output stream.



10
11
12
13
# File 'lib/amqp-processing/logging.rb', line 10

def log
  @logger ||= Logger.new(nil)
  @logger
end