Jayce^ wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I've been researching the different modules for pushing your access log to a 
> dbi storage vs. local file and have one question which I'm not sure any of 
> them are able to do yet.  Perhaps somebody has already thought of this and 
> I'm just not seeing the answer (very likely).
> 
> I need to log my error_log entries also, not just the access log.
> 

this is _far_ trickier than you might suspect at first.  for a detailed 
explanation, see Recipe 16.6 in the mod_perl Developer's Cookbook.

the code we used to implement error log capturing is here:
 
http://www.modperlcookbook.org/code/ch16/Cookbook-DivertErrorLog-0.01.tar.gz

while sample (but working) code that uses the interface is here:

http://www.modperlcookbook.org/code/ch16/Cookbook/ErrorsToIRC.pm

paul, randy, and I were all able to get this module to work on three 
different platforms (including windows) but I'm still not sure how 
robust it is for production use.  nevertheless, it should give you an 
idea as to why there aren't any modules on CPAN that do this :)

--Geoff

Reply via email to