This module should be included in all classes that need a logging facility.
Log the result of the block using the log level log_level.
# File lib/webgen/loggable.rb, line 11 11: def log(sev_level, &block) 12: source = (self.kind_of?(Class) ? self.name : self.class.name) + '#' + caller[0][%`.*"][1..2] 13: if WebsiteAccess.website && WebsiteAccess.website.logger && (!WebsiteAccess.website.config['logger.mask'] || source =~ WebsiteAccess.website.config['logger.mask']) 14: WebsiteAccess.website.logger.send(sev_level, source, &block) 15: end 16: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.