hgomez 01/03/27 14:01:20
Modified: src/native/mod_jk/apache1.3 mod_jk.c
Log:
Add support for timestamp in mod_jk.log
New var is JkLogStampFormat and use strftime
format ie : "[%a %b %d %H:%M:%S %Y] "
nota the " " to make it a single param
Revision Changes Path
1.7 +11 -1 jakarta-tomcat/src/native/mod_jk/apache1.3/mod_jk.c
Index: mod_jk.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/native/mod_jk/apache1.3/mod_jk.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- mod_jk.c 2001/03/21 07:12:26 1.6
+++ mod_jk.c 2001/03/27 22:01:18 1.7
@@ -58,6 +58,7 @@
* See ../common/jk_service.h for general mod_jk info *
* Author: Gal Shachor <[EMAIL PROTECTED]> *
* Dan Milstein <[EMAIL PROTECTED]> *
+ * Henri Gomez <[EMAIL PROTECTED]> *
* Version: $ $ *
***************************************************************************/
@@ -698,6 +699,14 @@
}
+static const char * jk_set_log_fmt(cmd_parms *cmd,
+ void *dummy,
+ char * log_format)
+{
+ jk_set_log_format(log_format);
+ return NULL;
+}
+
static const command_rec jk_cmds[] =
{
/*
@@ -729,7 +738,8 @@
"Full path to the Jakarta Tomcat module log file"},
{"JkLogLevel", jk_set_log_level, NULL, RSRC_CONF, TAKE1,
"The Jakarta Tomcat module log level, can be debug, info, error or emerg"},
-
+ {"JkLogStampFormat", jk_set_log_fmt, NULL, RSRC_CONF, TAKE1,
+ "The Jakarta Tomcat module log format, follow strftime synthax"},
/*
* Apache has multiple SSL modules (for example apache_ssl, stronghold
* IHS ...). Each of these can have a different SSL environment names