I recently moved my server to use passenger and found that while doing development I lost my standard out and error. After some work I found if I add this to the top of my environments.rb file all my standard out and error are put in file in the rails root / logs directory….
if ENV["TMPDIR"] && ENV["TMPDIR"].index("passenger")
std_out = File.new(RAILS_ROOT + "/log/stdout.log","a")
std_err = File.new(RAILS_ROOT + "/log/stderr.log","a")