Matthew Margolis
2007-May-22 21:33 UTC
[Mongrel] Process safe log files with multiple mongrels
I have a rails application that runs on multiple mongrels and I would like to make the log files non-interlacing. Are there any logging modifications/other loggers out there that I could use to create process safe logging? Thank you, Matt Margolis
On Tue, 22 May 2007 16:33:46 -0500 Matthew Margolis <mrmargolis at wisc.edu> wrote:> I have a rails application that runs on multiple mongrels and I would > like to make the log files non-interlacing. Are there any logging > modifications/other loggers out there that I could use to create > process safe logging?For your rails logs, you could probably use this: http://seattlerb.rubyforge.org/SyslogLogger/ Or similar. For your mongrel logs, just use the options to start that set the name of the file to the host-port of that mongrel. Mongrel cluster should already do this. -- Zed A. Shaw - Hate: http://savingtheinternetwithhate.com/ - Good: http://www.zedshaw.com/ - Evil: http://yearofevil.com/
On 5/22/07, Matthew Margolis <mrmargolis at wisc.edu> wrote:> I have a rails application that runs on multiple mongrels and I would > like to make the log files non-interlacing. Are there any logging > modifications/other loggers out there that I could use to create > process safe logging?You could try my asynchronous logger, Analogger -- http://analogger.swiftcore.org It will take logging input from N clients (where N is currently a number up to about 1000) and write it to logging destinations quickly and efficiently. Mongrel itself can be told to write log files to different log files, depending on the hostname and port it is running on, though, if it''s mongrel logs that you are asking about. Kirk Haines
On May 22, 2007, at 3:50 PM, Kirk Haines wrote:> You could try my asynchronous logger, Analogger -- > http://analogger.swiftcore.orgI can just see myself explaining that name to my boss now... -- miles
On 5/22/07, Miles Egan <miles at pixar.com> wrote:> On May 22, 2007, at 3:50 PM, Kirk Haines wrote: > > You could try my asynchronous logger, Analogger -- > > http://analogger.swiftcore.org > > I can just see myself explaining that name to my boss now...Pour "analog" into a tumbler with "asyncronous logger" and shake. Pour into a frosted mug and enjoy. Kirk Haines