Is there anyway to configure the common logger to output to a file?
I can see one of the options when calling rackup is a placeholder for an access log.
options = {:Port => 9292, :Host => "0.0.0.0", :AccessLog => []}
From what I can tell this isn't used anywhere.
I've tried this and it works up until you run a rackup app daemonized:
rackup config.ru > /full/path/file.log
Once daemonized the following lines are called:
STDIN.reopen "/dev/null"
STDOUT.reopen "/dev/null", "a"
STDERR.reopen "/dev/null", "a"
I'm assuming this kills the outputing so it never reaches the log file. I know the path is change to root during the daemonization.
I've experimented with commenting out the STDOUT line above and I've had mixed results in different environments. I was hoping a solution existed without having to touch the rack code base.
Any help would be greatly appreciated.
Thanks,
Greg