Methods

Scrubyt

NOT USED ANY MORE ##########################################


NOT USED ANY MORE ##########################################


TODO: if multiline messages aren't needed, then remove them.

TODO: switch to the conventional Ruby logger interface, or create an adapter to it. If the former, then decided what to do with the unit tests.

Public Class Methods

log(level, message) click to toggle source
# File lib/scrubyt/logging.rb, line 88
def self.log(level, message)
  return if logger.nil?

  logger.log(level, message)
end
logger=(logger) click to toggle source

Logging is disabled by default. It can be enabled as follows:

Scrubyt.logger = Scrubyt::Logger.new  # logs *all* messages to STDERR
# File lib/scrubyt/logging.rb, line 14
def self.logger=(logger)
  @logger = logger
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.