This is a feature, I'm already missing a long time. However, the attached
patch allows the percent sign to be put into the log format string "as
usual", for example:
LogFormat '... %{deflate-ratio}n%% ...'
would result in "... 56% ..."
nd
--
Treat your password like your toothbrush. Don't let anybody else
use it, and get a new one every six months. -- Clifford Stoll
(found in ssl_engine_pphrase.c)
Index: mod_log_config.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/modules/loggers/mod_log_config.c,v
retrieving revision 1.95
diff -u -r1.95 mod_log_config.c
--- mod_log_config.c 16 Sep 2002 12:43:36 -0000 1.95
+++ mod_log_config.c 22 Nov 2002 03:27:08 -0000
@@ -699,6 +699,15 @@
++s;
it->condition_sense = 0;
it->conditions = NULL;
+
+ if (*s == '%') {
+ it->arg = "%";
+ it->func = constant_item;
+ *sa = ++s;
+
+ return NULL;
+ }
+
it->want_orig = -1;
it->arg = ""; /* For safety's sake... */