Why isn't Passenger respecting my custom log format?
Posted
by Millisami
on Stack Overflow
See other posts from Stack Overflow
or by Millisami
Published on 2009-06-28T08:09:39Z
Indexed on
2010/04/09
22:03 UTC
Read the original article
Hit count: 318
ruby-on-rails
|passenger
I need to change the log format of my rails app.
I put this file in lib directory and required it in development.rb env file.
require 'hodel_3000_compliant_logger'
config.logger = Hodel3000CompliantLogger.new(config.log_path)
and I should get the output of the development.log file as follows:
Jun 28 03:05:13 millisami-notebook rails[18243]: Memory usage: 86888 |
PID: 18243
I get this exact log when I start my app with script/server (Mongrel). But when I run the app via Passenger, the format being logged is Rails' default.
Why doesn't Passenger write to the log file like Mongrel does?
© Stack Overflow or respective owner