I am looking to create an Apache module that performs a few extra tasks whenever anything is written out to the Apache error log. What hook(s) do I need to handle?
Update A little more information on what I am trying to do: I have a proprietary logging component that aggregates error messages from several servers, in different environments and frameworks – Linux, PHP, Windows 03/08, .NET 2/4 etc… The .NET components are completed and I believe an Apache module is the route to go on the LAMP side. Whenever Apache hears an error, it will forward it on to a web service I have already created.
You could just pipe the errorlog to a program:
yourscript.pl could be a small Perl program. Important is that it keeps running until STDIN is finished (so don’t parse one line and quit, the program will only be called once when apache starts)