Module: Log

Includes:
Logger::Severity
Defined in:
lib/dnstraverse/log.rb

Defined Under Namespace

Classes: Formatter

Constant Summary collapse

@@logger =
Logger.new(STDERR)

Class Method Summary collapse

Class Method Details

.level=(l) ⇒ Object



43
44
45
# File 'lib/dnstraverse/log.rb', line 43

def self.level=(l)
  @@logger.level = l
end

.logger=(logger) ⇒ Object



46
47
48
# File 'lib/dnstraverse/log.rb', line 46

def self.logger=(logger)
  @@logger = logger
end

.method_missing(key, *args, &b) ⇒ Object



49
50
51
# File 'lib/dnstraverse/log.rb', line 49

def self.method_missing(key, *args, &b)
  @@logger.send(key, *args, &b)
end