On Fri, Jul 1, 2011 at 1:54 PM, Eric Wong <[email protected]> wrote: > Alex Sharp <[email protected]> wrote: >> I would love to see a timestamp in each line of unicorn stderr and >> stdout logs. Has this been considered? Thanks. > > Unicorn itself never writes directly to stdout[1]. Once daemonized, it > never writes to stderr directly, either. If it does either of these, > it's a bug in Unicorn and needs to be reported and fixed. > > All writing through stderr happens through a Logger object which does > timestamping/formatting, but Rails may screw up the formatting:
I use these options in my config/unicorn.rb: stderr_path "/data/myapp/shared/log/unicorn.stderr.log" stdout_path "/data/myapp/shared/log/unicorn.stdout.log" So maybe that's what Alex is referring to as well. I do see un-timestamped output in both files (some from my OobGC-fork middleware). The logger configuration you mentioned is intended to be used with those? -Greg _______________________________________________ Unicorn mailing list - [email protected] http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying
