Logger for script/runner or console in production mode


#1

Hi,

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
controller.

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

Tonypm