Module: Diameter

Defined in:
lib/diameter/diameter_logger.rb

Overview

The Diameter namespace

Class Method Summary (collapse)

Class Method Details

+ (Logger) logger

Returns the logger to be used by the Diameter stack and associated objects. If no logger has been set with set_logger, defaults to writing to ./diameterstack.log

Returns:

  • (Logger)


12
13
14
15
# File 'lib/diameter/diameter_logger.rb', line 12

def self.logger
  @int_DiameterLogger ||= Logger.new('./diameterstack.log', 10, (1024^3))
  @int_DiameterLogger
end

+ (Object) set_logger(value)

Sets the logger to be used by the Diameter stack and associated objects.

Parameters:

  • value (Logger)


21
22
23
# File 'lib/diameter/diameter_logger.rb', line 21

def self.set_logger(value)
  @int_DiameterLogger = value
end