A collection of class methods that will get added as class method to anything that includes Logging.
Reset the global logger object to the default
# File lib/drbservice/utils.rb, line 355 def reset_logger self.logger = self.default_logger self.logger.level = Logger::WARN self.logger.formatter = self.default_log_formatter end
Returns true if the global logger has not been set to something other than the default one.
# File lib/drbservice/utils.rb, line 364 def using_default_logger? return self.logger == self.default_logger end
Return the library’s version string
# File lib/drbservice/utils.rb, line 370 def version_string( include_buildnum=false ) vstring = "%s %s" % [ self.name, self.const_get(:VERSION) ] if include_buildnum rev = self.const_get(:REVISION)[/: ([[:xdigit:]]+)/, 1] rescue '0' vstring << " (build %s)" % [ rev ] end return vstring end
Generated with the Darkfish Rdoc Generator 2.