我无法记录来自delayed_job进程的消息.这是正在运行的工作.
class MyJob def initialize(blahblah) @blahblah = blahblah @logger = Logger.new(File.join(Rails.root,'log','delayed_job.log')) end def perform @logger.add Logger::INFO,"logging from delayed_job" #do stuff end end
我已经尝试了各种日志记录级别,并且在我的环境配置中有config.log_level =:debug.我从monit运行delayed_job.我正在使用delayed_job 3.0.1和ruby 1.9.3以及rails 3.0.10.