Hi, When I look in the unicorn.stdout.log and/or unicorn.stderr.log files some lines are timestamped, some aren''t. How could I get all lines timestamped? Cheers, Jimmy For example: I, [2010-10-06T05:51:49.589454 #10512] INFO -- : Refreshing Gem list reaped #<Process::Status: pid=7850,exited(0)> worker=1 reaped #<Process::Status: pid=7851,exited(0)> worker=2 reaped #<Process::Status: pid=7849,exited(0)> worker=0 reaped #<Process::Status: pid=7852,exited(0)> worker=3 master complete master process ready worker=0 ready worker=2 ready worker=3 ready worker=1 ready reaped #<Process::Status: pid=10531,exited(0)> worker=0 reaped #<Process::Status: pid=10532,exited(0)> worker=1 reaped #<Process::Status: pid=10533,exited(0)> worker=2 reaped #<Process::Status: pid=10534,exited(0)> worker=3 master complete
Hello, On 10/10/2010 05:23 PM, Jimmy Soho wrote:> When I look in the unicorn.stdout.log and/or unicorn.stderr.log files > some lines are timestamped, some aren''t. How could I get all lines > timestamped?+1 I too would really like to see some sort of time stamp for the log files. -- Zev
Zev Blut <zblut at cerego.co.jp> wrote:> Hello, > > On 10/10/2010 05:23 PM, Jimmy Soho wrote: > >> When I look in the unicorn.stdout.log and/or unicorn.stderr.log files >> some lines are timestamped, some aren''t. How could I get all lines >> timestamped? > > +1 > I too would really like to see some sort of time stamp for the log files.They''re enabled, but Rails does something funky after it''s loaded:>From the FAQ, http://unicorn.bogomips.org/FAQ.html| === Why are log messages from Unicorn are unformatted when using Rails? | | Current versions of Rails unfortunately overrides the default Logger | formatter. | | You can undo this behavior with the default logger in your Unicorn | config file: | | Configurator::DEFAULTS[:logger].formatter = Logger::Formatter.new | | Of course you can specify an entirely different logger as well | with the "logger" directive described by Unicorn::Configurator. (sorry for the delayed reply, on vacation). -- Eric Wong