~~~~~~~~~~~~~~~~~~~~   
On Thu, 10 Oct 2002, Ged Haywood wrote:

> Hi there,
> 
> On Thu, 10 Oct 2002, Marcin Kasperski wrote:
> > > 
> > > I am to provide some custom logging in my mod_perl application.
> [snip]
> 
> and On Thu, 10 Oct 2002, Victor Tsang wrote:
> > 
> > Instead of developing something new, how about extending the
> > combined/common log format?  
> 
> Or you could investigate the various logging modules already in
> existence.  Look in the mod-perl Cookbook chapters 16, the Eagle Book,
> the Guide (see the mod_perl home page for details) and on CPAN.
> 
> > > how should I pass data between handlers - just stick to some perl
> > > global variable or use pnotes?
> 
> See for example 8.11 in the Cookbook.
> 
> > > 3) Are there any tools of 'gather logs from multiple machines to the
> > > central location' you would recommend?
> 
> The database approach would probably be easiest.

Easy but totally unscalable unless you make it not easy, with caching,
cache flushing to account for network hiccups, etc. etc.

Eventually we wrote a system with a logging daemon on the server and
clients on the clients. The latter took logging data from apache with a
custom handler and then sent it off to the daemon using some of the
techniques I mentioned above.


- nick

~~~~~~~~~~~~~~~~~~~~
Nick Tonkin   {|8^)>



Reply via email to