Apache2
mod_log_config.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
26 #include "apr_optional.h"
27 #include "httpd.h"
28 #include "scoreboard.h"
29 
30 #ifndef _MOD_LOG_CONFIG_H
31 #define _MOD_LOG_CONFIG_H 1
32 
36 typedef const char *ap_log_handler_fn_t(request_rec *r, char *a);
37 
42  const char *name);
47  request_rec *r,
48  void *handle,
49  const char **portions,
50  int *lengths,
51  int nelts,
52  apr_size_t len);
53 
54 typedef struct ap_log_handler {
58 
60  (apr_pool_t *p, char *tag, ap_log_handler_fn_t *func,
61  int def));
71 
72 #endif /* MOD_LOG_CONFIG */
APR-UTIL registration of functions exported by modules.
#define APR_DECLARE_OPTIONAL_FN(ret, name, args)
Definition: apr_optional.h:50
request_rec * r
Definition: mod_dav.h:518
const char * s
Definition: mod_dav.h:1327
const char * name
Definition: mod_dav.h:805
struct ap_log_handler ap_log_handler
ap_log_writer_init * ap_log_set_writer_init(ap_log_writer_init *func)
void * ap_log_writer_init(apr_pool_t *p, server_rec *s, const char *name)
Definition: mod_log_config.h:41
void ap_register_log_handler(apr_pool_t *p, char *tag, ap_log_handler_fn_t *func, int def)
const char * ap_log_handler_fn_t(request_rec *r, char *a)
Definition: mod_log_config.h:36
apr_status_t ap_log_writer(request_rec *r, void *handle, const char **portions, int *lengths, int nelts, apr_size_t len)
Definition: mod_log_config.h:46
ap_log_writer * ap_log_set_writer(ap_log_writer *func)
int apr_status_t
Definition: apr_errno.h:44
size_t apr_size_t
Definition: apr.h:394
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
HTTP Daemon routines.
Apache scoreboard library.
Definition: mod_log_config.h:54
int want_orig_default
Definition: mod_log_config.h:56
ap_log_handler_fn_t * func
Definition: mod_log_config.h:55
A structure that represents the current request.
Definition: httpd.h:856
A structure to store information for each virtual server.
Definition: httpd.h:1382
apr_pool_t * p