Module: Irrc::Logging

Included in:
Irrd::Client, Whoisd::Client
Defined in:
lib/irrc/logging.rb

Defined Under Namespace

Classes: Logger

Instance Method Summary collapse

Instance Method Details

#loggerObject



9
10
11
# File 'lib/irrc/logging.rb', line 9

def logger
  @logger ||= Logger.new(STDERR).tap {|l| l.level = Logger::WARN }
end

#logger=(logger) ⇒ Object



5
6
7
# File 'lib/irrc/logging.rb', line 5

def logger=(logger)
  @logger = logger
end