データ構造 | |
struct | ap_log_handler |
マクロ定義 | |
#define | _MOD_LOG_CONFIG_H 1 |
型定義 | |
typedef const char * | ap_log_handler_fn_t (request_rec *r, char *a) |
typedef void * | ap_log_writer_init (apr_pool_t *p, server_rec *s, const char *name) |
typedef apr_status_t | ap_log_writer (request_rec *r, void *handle, const char **portions, int *lengths, int nelts, apr_size_t len) |
関数 | |
APR_DECLARE_OPTIONAL_FN (void, ap_register_log_handler,(apr_pool_t *p, char *tag, ap_log_handler_fn_t *func, int def)) | |
APR_DECLARE_OPTIONAL_FN (ap_log_writer_init *, ap_log_set_writer_init,(ap_log_writer_init *func)) | |
APR_DECLARE_OPTIONAL_FN (ap_log_writer *, ap_log_set_writer,(ap_log_writer *func)) |
typedef const char* ap_log_handler_fn_t(request_rec *r, char *a) |
callback function prototype for a external log handler
typedef apr_status_t ap_log_writer(request_rec *r, void *handle, const char **portions, int *lengths, int nelts, apr_size_t len) |
callback which gets called where there is a log line to write.
typedef void* ap_log_writer_init(apr_pool_t *p, server_rec *s, const char *name) |
callback function prototype for external writer initialization.
APR_DECLARE_OPTIONAL_FN | ( | ap_log_writer * | , | |
ap_log_set_writer | , | |||
(ap_log_writer *func) | ||||
) |
you should probably set the writer at the same time (ie..before open_logs)
APR_DECLARE_OPTIONAL_FN | ( | ap_log_writer_init * | , | |
ap_log_set_writer_init | , | |||
(ap_log_writer_init *func) | ||||
) |
you will need to set your init handler *BEFORE* the open_logs in mod_log_config gets executed