class Dnsruby::TheLog
This class exists for backwards compatibility.
It's Logger (which defaults to STDOUT, level FATAL) can be configured, or a new Logger can be supplied.
Dnsruby::TheLog.level=Logger::DEBUG Dnsruby::TheLog.debug("Debug message")
Public Instance Methods
level()
click to toggle source
# File lib/dnsruby/the_log.rb, line 36 def level return Dnsruby.log.level end
level=(level)
click to toggle source
Change the Logger level.
# File lib/dnsruby/the_log.rb, line 33 def level=(level) Dnsruby.log.level = level end
set_logger(logger)
click to toggle source
Set a new Logger for use by Dnsruby
# File lib/dnsruby/the_log.rb, line 29 def set_logger(logger) Dnsruby.log = logger end