Object
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")
# File lib/Dnsruby/TheLog.rb, line 36 def level return Dnsruby.log.level end
Change the Logger level.
# File lib/Dnsruby/TheLog.rb, line 33 def level=(level) Dnsruby.log.level = level end
Set a new Logger for use by Dnsruby
# File lib/Dnsruby/TheLog.rb, line 29 def set_logger(logger) Dnsruby.log = logger end
Generated with the Darkfish Rdoc Generator 2.