httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: httpd-2.0/server log.c
Date Wed, 06 Jun 2001 22:24:56 GMT
rbb         01/06/06 15:24:56

  Modified:    .        CHANGES
               include  http_log.h
               server   log.c
  Log:
  Add a new request phase, for allowing management modules to forward
  error logs to their management agents.
  
  Revision  Changes    Path
  1.216     +6 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.215
  retrieving revision 1.216
  diff -u -d -b -w -u -r1.215 -r1.216
  --- CHANGES	2001/06/06 21:28:17	1.215
  +++ CHANGES	2001/06/06 22:24:47	1.216
  @@ -1,5 +1,11 @@
   Changes with Apache 2.0.19-dev
   
  +  *) Add a new request hook, error_log.  This phase allows modules
  +     to act on the error log string _after_ it has been written
  +     to the error log.  The goal for this hook is to allow monitoring
  +     modules to send the error string to the monitoring agent.
  +     [Ryan Bloom]
  +
     *) Modify mod_echo to make it use filters for input and output.
        [Ryan Morgan <rmorgan@covalent.net>]
   
  
  
  
  1.29      +5 -0      httpd-2.0/include/http_log.h
  
  Index: http_log.h
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/include/http_log.h,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -d -b -w -u -r1.28 -r1.29
  --- http_log.h	2001/05/03 23:39:43	1.28
  +++ http_log.h	2001/06/06 22:24:51	1.29
  @@ -275,6 +275,11 @@
    */
   #define ap_piped_log_write_fd(pl)	((pl)->fds[1])
   
  +AP_DECLARE_HOOK(void, error_log, (const char *file, int line, int level,
  +                       apr_status_t status, const server_rec *s,
  +                       const request_rec *r, apr_pool_t *pool,
  +                       const char *errstr))
  +
   #ifdef __cplusplus
   }
   #endif
  
  
  
  1.93      +12 -0     httpd-2.0/server/log.c
  
  Index: log.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/log.c,v
  retrieving revision 1.92
  retrieving revision 1.93
  diff -u -d -b -w -u -r1.92 -r1.93
  --- log.c	2001/05/17 12:10:22	1.92
  +++ log.c	2001/06/06 22:24:54	1.93
  @@ -96,6 +96,10 @@
   	int	t_val;
   } TRANS;
   
  +APR_HOOK_STRUCT(
  +    APR_HOOK_LINK(error_log)
  +)
  +
   #ifdef HAVE_SYSLOG
   
   static const TRANS facilities[] = {
  @@ -455,6 +459,7 @@
   	syslog(level_and_mask, "%s", errstr);
       }
   #endif
  +    ap_run_error_log(file, line, level, status, s, r, pool, errstr);
   }
       
   AP_DECLARE(void) ap_log_error(const char *file, int line, int level,
  @@ -749,4 +754,11 @@
   {
       apr_pool_cleanup_run(pl->p, pl, piped_log_cleanup);
   }
  +
  +AP_IMPLEMENT_HOOK_VOID(error_log,
  +                       (const char *file, int line, int level, 
  +                       apr_status_t status, const server_rec *s,
  +                       const request_rec *r, apr_pool_t *pool, 
  +                       const char *errstr), (file, line, level,
  +                       status, s, r, pool, errstr))
   
  
  
  

Mime
View raw message