You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Rainer Jung <to...@kippdata.de> on 2004/08/12 18:25:03 UTC

Enhancement: mod_jk-Logging

I have a proposal for a slight enhancement concerning the log format of 
mod_jk.

1) Include the log level of a message in the log line. That should be 
easy and is very helpful to find relevant messages. It is pretty standard.

2) Include the PID of the logging process in the log file. That helps a 
lot, because one can also log the PID in Apaches access log. So it is 
easier to relate access log lines and mod_jk log lines to each other. 
Also it helps to unmangle, if log lines from several parallel requests 
are mixed. Of course this argumentation mainly is for apache 1.3, but 
most people use mod_jk for it.

Both enhancements can be done in jk_util.c.

I attach a small patch. Since I'm not an experienced C developer please 
check. I borrowed a define for Netware for getpid() from Apache's code. 
Not sure If it will work for Netware, or if configure needs to be 
enhanced, if we use getpid(). It build well on Solaris.

Thank's for considering.