librelist archives

« back to archive

What do you use for logging inside resque workers ?

What do you use for logging inside resque workers ?

From:
Thibaut Barrère
Date:
2010-11-02 @ 20:29
Hi,

I'm curious to know what you use for logging inside your workers: is that
the ruby logger, log4r or something else ?

I personally use it to display info messages while in production, and
disable these during the tests to avoid polluting my specs/cucumber
features.

What do you use ?

Thanks!

-- Thibaut

Re: [resque] What do you use for logging inside resque workers ?

From:
Philippe Lafoucrière
Date:
2010-11-02 @ 20:43
On Tue, Nov 2, 2010 at 9:29 PM, Thibaut Barrère
<thibaut.barrere@gmail.com> wrote:
> What do you use ?

Since we have several servers for the workers, we like to have a
centralized log. We're using a syslog logger over TCP :

http://gist.github.com/598133

It's not as efficient as a local file, but it's pretty useful for
large clusters :)

Re: [resque] What do you use for logging inside resque workers ?

From:
Thibaut Barrère
Date:
2010-11-02 @ 21:53
> We're using a syslog logger over TCP

thanks! I will have to use this sooner or later :)

-- Thibaut

Re: [resque] What do you use for logging inside resque workers ?

From:
Ashley Martens
Date:
2010-11-03 @ 03:02
We use the syslogger GEM from ngmoco. That all goes to the local syslog and
that is configured to log into a main server. That way to look locally for
changes to each machine and then globally. I don't know why you would try to
use a Ruby version of syslog to forward the logs over the network unless you
are on Windows.

On Tue, Nov 2, 2010 at 2:53 PM, Thibaut Barrère
<thibaut.barrere@gmail.com>wrote:

> > We're using a syslog logger over TCP
>
> thanks! I will have to use this sooner or later :)
>
> -- Thibaut
>
>

Re: [resque] What do you use for logging inside resque workers ?

From:
Philippe Lafoucrière
Date:
2010-11-03 @ 08:50
On Wed, Nov 3, 2010 at 4:02 AM, Ashley Martens <ashleym1972@gmail.com> wrote:
> We use the syslogger GEM from ngmoco. That all goes to the local syslog and
> that is configured to log into a main server. That way to look locally for
> changes to each machine and then globally. I don't know why you would try to
> use a Ruby version of syslog to forward the logs over the network unless you
> are on Windows.

Or on some servers you don't manage, and don't have syslog installed locally :)
You may also read this cool post :
http://www.igvita.com/2008/10/22/distributed-logging-syslog-ng-splunk/