unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Subject: Re: Log line formatting
Date: Fri, 6 Nov 2009 21:40:05 +0000	[thread overview]
Message-ID: <20091106214005.GA17969@dcvr.yhbt.net> (raw)
In-Reply-To: <b32c81260911061319p3a834b69m3f76a432ced3eabc@mail.gmail.com>

Lee Bankewitz <leebankewitz@gmail.com> wrote:
> Howdy.
> 
> I'm running Unicorn 0.94 in production (its working wonderfully).  One
> question about the log line formats in the unicorn log.
> 
> In my unicorn config file, I have:
> logger Logger.new("log/unicorn.log")
> 
> I see timestamps on the the initial log lines when unicorn first starts, i.e.:
> "I, [2009-11-06T12:25:13.812367 #2437]  INFO -- : listening on
> addr=0.0.0.0:3000 fd=5"
> 
> But the format of the log line changes soon thereafter:
> "master process ready"
> "worker=0 ready"
> 
> any ideas why this is happening? I'd prefer to have the initial format
> for every line.

Hi Lee,

This with Rails?  Unfortunately, Rails seems to monkey patch the core
Logger format methods.  If you find a clean solution to this without
bad side effects, please let the rest of us know, thanks.

-- 
Eric Wong

  reply	other threads:[~2009-11-06 21:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-06 21:19 Log line formatting Lee Bankewitz
2009-11-06 21:40 ` Eric Wong [this message]
2009-11-06 22:09   ` Lee Bankewitz
2009-11-06 22:56     ` Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091106214005.GA17969@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=mongrel-unicorn@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).