Logger for script/runner or console in production mode


When running in development mode, I have some model methods that I
call via cron + script/runner. These were nicely writing information
to the log file as a record of activity.

However, in production mode, when calling model methods from script/
runner or script/console, nothing is added to the log file.
Regardless of the log level settings. I have tried many tests of log
level, and even used log.info? etc to prove the log level is set ok.
The same methods do write to the log ok if called from the

I haven’t found any other post on this question so I am thinking I
must be missing some obvious point here.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs