From: "Iñaki Baz Castillo" Date: 2009-09-03T05:55:36+09:00 Subject: Re: [ANN] clogger 0.0.4 - configurable request logging for Rack El Miércoles, 2 de Septiembre de 2009, Eric Wong escribió: > For request logging, the point of using "<<" is to avoid formatting done > by the Logger. Both Rack::CommonLogger and Clogger already do their own > timestamps and other formatting features (Clogger being highly > configurable)). > > So you really don't get much benefit from using any Logging/Logger > object over a File object unless you need builtin log rotation[1] > or you want userspace buffering[2]. What I want to achieve are unified logs (same file and same format). I've already set my Logging instance (for manual logging) and want that Rack via Clogger (and also DataMapper) uses the same file and same format. I expect that I just must configure (or code) the format both Clogger and DataMapper use when invoking "<<" method, right? The fact is I've already both Clogger and DataMapper logging via the Logging instance (so to the same file), I just need to edit the format to make it match, > > [1] - which doesn't work if you're using multiple processes anyways, > logrotate is a better solution. Yes, I always use Linux logrotate system rather than the built-in application log rotation. Thanks a lot. -- Iñaki Baz Castillo