Include this module in classes you wish to have logging facilities
Log level aliases
# File lib/resque/logging.rb, line 12 def debug(message); Logging.log :debug, message; end
# File lib/resque/logging.rb, line 15 def error(message); Logging.log :error, message; end
# File lib/resque/logging.rb, line 16 def fatal(message); Logging.log :fatal, message; end
# File lib/resque/logging.rb, line 13 def info(message); Logging.log :info, message; end
# File lib/resque/logging.rb, line 14 def warn(message); Logging.log :warn, message; end
Thunk to the logger’s own log method (if configured)
# File lib/resque/logging.rb, line 7 def self.log(severity, message) Resque.logger.__send__(severity, message) if Resque.logger end