how to change the rails logger to use standard out from rake tasks (rails2)

前端 未结 3 630
误落风尘
误落风尘 2021-02-19 07:05

When I do

Rails.logger.debug \"hello world\" from within my rake tasks I want it to log to standard out.

How do I set the rails logger to Logger.new(STDOUT) fro

3条回答
提交回复
热议问题