module DRbService::Logging::ClassMethods
A collection of class methods that will get added as class method to anything that includes Logging
.
Public Instance Methods
reset_logger()
click to toggle source
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
using_default_logger?()
click to toggle source
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
version_string( include_buildnum=false )
click to toggle source
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