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>]
*/
#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
int t_val;
} TRANS;
+APR_HOOK_STRUCT(
+ APR_HOOK_LINK(error_log)
+)
+
#ifdef HAVE_SYSLOG
static const TRANS facilities[] = {
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,
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))
+