* timestamping log entries
@ 2010-10-10 8:23 Jimmy Soho
2010-10-12 2:20 ` Zev Blut
0 siblings, 1 reply; 3+ messages in thread
From: Jimmy Soho @ 2010-10-10 8:23 UTC (permalink / raw)
To: mongrel-unicorn
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
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: timestamping log entries
2010-10-10 8:23 timestamping log entries Jimmy Soho
@ 2010-10-12 2:20 ` Zev Blut
2010-10-12 8:43 ` Eric Wong
0 siblings, 1 reply; 3+ messages in thread
From: Zev Blut @ 2010-10-12 2:20 UTC (permalink / raw)
To: unicorn list
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
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: timestamping log entries
2010-10-12 2:20 ` Zev Blut
@ 2010-10-12 8:43 ` Eric Wong
0 siblings, 0 replies; 3+ messages in thread
From: Eric Wong @ 2010-10-12 8:43 UTC (permalink / raw)
To: unicorn list
Zev Blut <zblut@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
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-12 9:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-10 8:23 timestamping log entries Jimmy Soho
2010-10-12 2:20 ` Zev Blut
2010-10-12 8:43 ` Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).