timestamping log entries

Eric Wong normalperson at yhbt.net
Tue Oct 12 04:43:07 EDT 2010

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

More information about the mongrel-unicorn mailing list