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


when

rails.logger.debug "hello world" within rake tasks want log standard out.

how set rails logger logger.new(stdout) within rake task?

i want app log file when coming through controllers etc, want rake tasks go std out because of way monitoring setup.

i thinking define environment , use config, overkill, want same environment vars in each env, want change location of log destination.

for have log helper uses puts, want take advantage of formatting of rails logs , buffering.

i did rails.logger = logger.new(stdout) , worked (rails3)


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -