httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Terbush <ra...@covalent.net>
Subject [PATCH] Logging the METHOD
Date Wed, 19 Nov 1997 19:29:05 GMT
I've made the following simple change to mod_log_config.c to allow 
logging of the method. Can't seem to find another way to get to 
this information. Am I missing something?

Index: mod_log_config.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_log_config.c,v
retrieving revision 1.41
diff -c -r1.41 mod_log_config.c
*** mod_log_config.c	1997/10/22 20:30:24	1.41
--- mod_log_config.c	1997/11/19 18:44:25
***************
*** 124,129 ****
--- 124,130 ----
   * %...{Foobar}o:  The contents of Foobar: header line(s) in the reply.
   * %...p:  the port the request was served to
   * %...P:  the process ID of the child that serviced the request.
+  * %...m:  the method of the request
   * %...r:  first line of request
   * %...s:  status.  For requests that got internally redirected, this
   *         is status of the *original* request --- %...>s for the last.
***************
*** 294,299 ****
--- 295,305 ----
      return rvalue;
  }
  
+ static char *log_method(request_rec *r, char *a)
+ {
+     return r->method;
+ }
+ 
  static char *log_request_line(request_rec *r, char *a)
  {
      return r->the_request;
***************
*** 468,473 ****
--- 474,482 ----
      },
      {
          'P', log_child_pid, 0
+     },
+     {
+         'm', log_method, 0
      },
      {
          '\0'




Mime
View raw message