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
Source
# File lib/dnsruby/the_log.rb, line 33 def level=(level) Dnsruby.log.level = level end
Change the Logger level.
Source
# File lib/dnsruby/the_log.rb, line 29 def set_logger(logger) Dnsruby.log = logger end
Set a new Logger for use by Dnsruby