阅读背景:

如何从初始化程序访问Rails记录器?

来源:互联网 

Following the advice from my previous question, I placed my background process in an initializer named scheduler.rb. However, I'm having a hard time getting the newly-scheduled processes to log to the Rails logs. Is there a simple way for me to access the same logs from the initializer, preferably by accessing Rails' default logger methods (logger.info, etc)?,




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: