Apache2
http_log.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 #ifndef APACHE_HTTP_LOG_H
27 #define APACHE_HTTP_LOG_H
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #include "apr_thread_proc.h"
34 #include "http_config.h"
35 
36 #ifdef HAVE_SYSLOG
37 #include <syslog.h>
38 
39 #ifndef LOG_PRIMASK
40 #define LOG_PRIMASK 7
41 #endif
42 
43 #define APLOG_EMERG LOG_EMERG /* system is unusable */
44 #define APLOG_ALERT LOG_ALERT /* action must be taken immediately */
45 #define APLOG_CRIT LOG_CRIT /* critical conditions */
46 #define APLOG_ERR LOG_ERR /* error conditions */
47 #define APLOG_WARNING LOG_WARNING /* warning conditions */
48 #define APLOG_NOTICE LOG_NOTICE /* normal but significant condition */
49 #define APLOG_INFO LOG_INFO /* informational */
50 #define APLOG_DEBUG LOG_DEBUG /* debug-level messages */
51 #define APLOG_TRACE1 (LOG_DEBUG + 1) /* trace-level 1 messages */
52 #define APLOG_TRACE2 (LOG_DEBUG + 2) /* trace-level 2 messages */
53 #define APLOG_TRACE3 (LOG_DEBUG + 3) /* trace-level 3 messages */
54 #define APLOG_TRACE4 (LOG_DEBUG + 4) /* trace-level 4 messages */
55 #define APLOG_TRACE5 (LOG_DEBUG + 5) /* trace-level 5 messages */
56 #define APLOG_TRACE6 (LOG_DEBUG + 6) /* trace-level 6 messages */
57 #define APLOG_TRACE7 (LOG_DEBUG + 7) /* trace-level 7 messages */
58 #define APLOG_TRACE8 (LOG_DEBUG + 8) /* trace-level 8 messages */
59 
60 #define APLOG_LEVELMASK 15 /* mask off the level value */
61 
62 #else
63 
64 #define APLOG_EMERG 0 /* system is unusable */
65 #define APLOG_ALERT 1 /* action must be taken immediately */
66 #define APLOG_CRIT 2 /* critical conditions */
67 #define APLOG_ERR 3 /* error conditions */
68 #define APLOG_WARNING 4 /* warning conditions */
69 #define APLOG_NOTICE 5 /* normal but significant condition */
70 #define APLOG_INFO 6 /* informational */
71 #define APLOG_DEBUG 7 /* debug-level messages */
72 #define APLOG_TRACE1 8 /* trace-level 1 messages */
73 #define APLOG_TRACE2 9 /* trace-level 2 messages */
74 #define APLOG_TRACE3 10 /* trace-level 3 messages */
75 #define APLOG_TRACE4 11 /* trace-level 4 messages */
76 #define APLOG_TRACE5 12 /* trace-level 5 messages */
77 #define APLOG_TRACE6 13 /* trace-level 6 messages */
78 #define APLOG_TRACE7 14 /* trace-level 7 messages */
79 #define APLOG_TRACE8 15 /* trace-level 8 messages */
80 
81 #define APLOG_LEVELMASK 15 /* mask off the level value */
82 
83 #endif
84 
85 /* APLOG_NOERRNO is ignored and should not be used. It will be
86  * removed in a future release of Apache.
87  */
88 #define APLOG_NOERRNO (APLOG_LEVELMASK + 1)
89 
102 #define APLOG_TOCLIENT ((APLOG_LEVELMASK + 1) * 2)
103 
104 /* normal but significant condition on startup, usually printed to stderr */
105 #define APLOG_STARTUP ((APLOG_LEVELMASK + 1) * 4)
106 
107 #ifndef DEFAULT_LOGLEVEL
108 #define DEFAULT_LOGLEVEL APLOG_WARNING
109 #endif
110 
117 #define APLOGNO(n) "AH" #n ": "
118 
129 #define APLOG_NO_MODULE -1
130 
131 #ifdef __cplusplus
139 #else /* __cplusplus */
148 static int * const aplog_module_index;
149 #endif /* __cplusplus */
150 
165 #ifdef __cplusplus
166 #define APLOG_MODULE_INDEX (*aplog_module_index)
167 #else /* __cplusplus */
168 #define APLOG_MODULE_INDEX \
169  (aplog_module_index ? *aplog_module_index : APLOG_NO_MODULE)
170 #endif /* __cplusplus */
171 
178 #ifdef DOXYGEN
179 #define APLOG_MAX_LOGLEVEL
180 #endif
181 #ifndef APLOG_MAX_LOGLEVEL
182 #define APLOG_MODULE_IS_LEVEL(s,module_index,level) \
183  ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) || \
184  (s == NULL) || \
185  (ap_get_server_module_loglevel(s, module_index) \
186  >= ((level)&APLOG_LEVELMASK) ) )
187 #define APLOG_C_MODULE_IS_LEVEL(c,module_index,level) \
188  ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) || \
189  (ap_get_conn_module_loglevel(c, module_index) \
190  >= ((level)&APLOG_LEVELMASK) ) )
191 #define APLOG_CS_MODULE_IS_LEVEL(c,s,module_index,level) \
192  ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) || \
193  (ap_get_conn_server_module_loglevel(c, s, module_index) \
194  >= ((level)&APLOG_LEVELMASK) ) )
195 #define APLOG_R_MODULE_IS_LEVEL(r,module_index,level) \
196  ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) || \
197  (ap_get_request_module_loglevel(r, module_index) \
198  >= ((level)&APLOG_LEVELMASK) ) )
199 #else
200 #define APLOG_MODULE_IS_LEVEL(s,module_index,level) \
201  ( (((level)&APLOG_LEVELMASK) <= APLOG_MAX_LOGLEVEL) && \
202  ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) || \
203  (s == NULL) || \
204  (ap_get_server_module_loglevel(s, module_index) \
205  >= ((level)&APLOG_LEVELMASK) ) ) )
206 #define APLOG_CS_MODULE_IS_LEVEL(c,s,module_index,level) \
207  ( (((level)&APLOG_LEVELMASK) <= APLOG_MAX_LOGLEVEL) && \
208  ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) || \
209  (ap_get_conn_server_module_loglevel(c, s, module_index) \
210  >= ((level)&APLOG_LEVELMASK) ) ) )
211 #define APLOG_C_MODULE_IS_LEVEL(c,module_index,level) \
212  ( (((level)&APLOG_LEVELMASK) <= APLOG_MAX_LOGLEVEL) && \
213  ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) || \
214  (ap_get_conn_module_loglevel(c, module_index) \
215  >= ((level)&APLOG_LEVELMASK) ) ) )
216 #define APLOG_R_MODULE_IS_LEVEL(r,module_index,level) \
217  ( (((level)&APLOG_LEVELMASK) <= APLOG_MAX_LOGLEVEL) && \
218  ( (((level)&APLOG_LEVELMASK) <= APLOG_NOTICE) || \
219  (ap_get_request_module_loglevel(r, module_index) \
220  >= ((level)&APLOG_LEVELMASK) ) ) )
221 #endif
222 
223 #define APLOG_IS_LEVEL(s,level) \
224  APLOG_MODULE_IS_LEVEL(s,APLOG_MODULE_INDEX,level)
225 #define APLOG_C_IS_LEVEL(c,level) \
226  APLOG_C_MODULE_IS_LEVEL(c,APLOG_MODULE_INDEX,level)
227 #define APLOG_CS_IS_LEVEL(c,s,level) \
228  APLOG_CS_MODULE_IS_LEVEL(c,s,APLOG_MODULE_INDEX,level)
229 #define APLOG_R_IS_LEVEL(r,level) \
230  APLOG_R_MODULE_IS_LEVEL(r,APLOG_MODULE_INDEX,level)
231 
232 
233 #define APLOGinfo(s) APLOG_IS_LEVEL(s,APLOG_INFO)
234 #define APLOGdebug(s) APLOG_IS_LEVEL(s,APLOG_DEBUG)
235 #define APLOGtrace1(s) APLOG_IS_LEVEL(s,APLOG_TRACE1)
236 #define APLOGtrace2(s) APLOG_IS_LEVEL(s,APLOG_TRACE2)
237 #define APLOGtrace3(s) APLOG_IS_LEVEL(s,APLOG_TRACE3)
238 #define APLOGtrace4(s) APLOG_IS_LEVEL(s,APLOG_TRACE4)
239 #define APLOGtrace5(s) APLOG_IS_LEVEL(s,APLOG_TRACE5)
240 #define APLOGtrace6(s) APLOG_IS_LEVEL(s,APLOG_TRACE6)
241 #define APLOGtrace7(s) APLOG_IS_LEVEL(s,APLOG_TRACE7)
242 #define APLOGtrace8(s) APLOG_IS_LEVEL(s,APLOG_TRACE8)
243 
244 #define APLOGrinfo(r) APLOG_R_IS_LEVEL(r,APLOG_INFO)
245 #define APLOGrdebug(r) APLOG_R_IS_LEVEL(r,APLOG_DEBUG)
246 #define APLOGrtrace1(r) APLOG_R_IS_LEVEL(r,APLOG_TRACE1)
247 #define APLOGrtrace2(r) APLOG_R_IS_LEVEL(r,APLOG_TRACE2)
248 #define APLOGrtrace3(r) APLOG_R_IS_LEVEL(r,APLOG_TRACE3)
249 #define APLOGrtrace4(r) APLOG_R_IS_LEVEL(r,APLOG_TRACE4)
250 #define APLOGrtrace5(r) APLOG_R_IS_LEVEL(r,APLOG_TRACE5)
251 #define APLOGrtrace6(r) APLOG_R_IS_LEVEL(r,APLOG_TRACE6)
252 #define APLOGrtrace7(r) APLOG_R_IS_LEVEL(r,APLOG_TRACE7)
253 #define APLOGrtrace8(r) APLOG_R_IS_LEVEL(r,APLOG_TRACE8)
254 
255 #define APLOGcinfo(c) APLOG_C_IS_LEVEL(c,APLOG_INFO)
256 #define APLOGcdebug(c) APLOG_C_IS_LEVEL(c,APLOG_DEBUG)
257 #define APLOGctrace1(c) APLOG_C_IS_LEVEL(c,APLOG_TRACE1)
258 #define APLOGctrace2(c) APLOG_C_IS_LEVEL(c,APLOG_TRACE2)
259 #define APLOGctrace3(c) APLOG_C_IS_LEVEL(c,APLOG_TRACE3)
260 #define APLOGctrace4(c) APLOG_C_IS_LEVEL(c,APLOG_TRACE4)
261 #define APLOGctrace5(c) APLOG_C_IS_LEVEL(c,APLOG_TRACE5)
262 #define APLOGctrace6(c) APLOG_C_IS_LEVEL(c,APLOG_TRACE6)
263 #define APLOGctrace7(c) APLOG_C_IS_LEVEL(c,APLOG_TRACE7)
264 #define APLOGctrace8(c) APLOG_C_IS_LEVEL(c,APLOG_TRACE8)
265 
267 
283 #define APLOG_MARK __FILE__,__LINE__,APLOG_MODULE_INDEX
284 
290 
297  const char *file);
298 
309  apr_pool_t *ptemp, server_rec *s_main);
310 
320 
321 /*
322  * The primary logging functions, ap_log_error, ap_log_rerror, ap_log_cerror,
323  * and ap_log_perror use a printf style format string to build the log message.
324  * It is VERY IMPORTANT that you not include any raw data from the network,
325  * such as the request-URI or request header fields, within the format
326  * string. Doing so makes the server vulnerable to a denial-of-service
327  * attack and other messy behavior. Instead, use a simple format string
328  * like "%s", followed by the string containing the untrusted data.
329  */
330 
356 #ifdef DOXYGEN
357 AP_DECLARE(void) ap_log_error(const char *file, int line, int module_index,
358  int level, apr_status_t status,
359  const server_rec *s, const char *fmt, ...);
360 #else
361 #ifdef AP_HAVE_C99
362 /* need additional step to expand APLOG_MARK first */
363 #define ap_log_error(...) ap_log_error__(__VA_ARGS__)
364 /* need server_rec *sr = ... for the case if s is verbatim NULL */
365 #define ap_log_error__(file, line, mi, level, status, s, ...) \
366  do { const server_rec *sr__ = s; if (APLOG_MODULE_IS_LEVEL(sr__, mi, level)) \
367  ap_log_error_(file, line, mi, level, status, sr__, __VA_ARGS__); \
368  } while(0)
369 #else
370 #define ap_log_error ap_log_error_
371 #endif
372 AP_DECLARE(void) ap_log_error_(const char *file, int line, int module_index,
373  int level, apr_status_t status,
374  const server_rec *s, const char *fmt, ...)
375  __attribute__((format(printf,7,8)));
376 #endif
377 
399 #ifdef DOXYGEN
400 AP_DECLARE(void) ap_log_perror(const char *file, int line, int module_index,
401  int level, apr_status_t status, apr_pool_t *p,
402  const char *fmt, ...);
403 #else
404 #if defined(AP_HAVE_C99) && defined(APLOG_MAX_LOGLEVEL)
405 /* need additional step to expand APLOG_MARK first */
406 #define ap_log_perror(...) ap_log_perror__(__VA_ARGS__)
407 #define ap_log_perror__(file, line, mi, level, status, p, ...) \
408  do { if ((level) <= APLOG_MAX_LOGLEVEL ) \
409  ap_log_perror_(file, line, mi, level, status, p, \
410  __VA_ARGS__); } while(0)
411 #else
412 #define ap_log_perror ap_log_perror_
413 #endif
414 AP_DECLARE(void) ap_log_perror_(const char *file, int line, int module_index,
415  int level, apr_status_t status, apr_pool_t *p,
416  const char *fmt, ...)
417  __attribute__((format(printf,7,8)));
418 #endif
419 
441 #ifdef DOXYGEN
442 AP_DECLARE(void) ap_log_rerror(const char *file, int line, int module_index,
443  int level, apr_status_t status,
444  const request_rec *r, const char *fmt, ...);
445 #else
446 #ifdef AP_HAVE_C99
447 /* need additional step to expand APLOG_MARK first */
448 #define ap_log_rerror(...) ap_log_rerror__(__VA_ARGS__)
449 #define ap_log_rerror__(file, line, mi, level, status, r, ...) \
450  do { if (APLOG_R_MODULE_IS_LEVEL(r, mi, level)) \
451  ap_log_rerror_(file, line, mi, level, status, r, __VA_ARGS__); \
452  } while(0)
453 #else
454 #define ap_log_rerror ap_log_rerror_
455 #endif
456 AP_DECLARE(void) ap_log_rerror_(const char *file, int line, int module_index,
457  int level, apr_status_t status,
458  const request_rec *r, const char *fmt, ...)
459  __attribute__((format(printf,7,8)));
460 #endif
461 
485 #ifdef DOXYGEN
486 AP_DECLARE(void) ap_log_cerror(const char *file, int line, int module_index,
487  int level, apr_status_t status,
488  const conn_rec *c, const char *fmt, ...);
489 #else
490 #ifdef AP_HAVE_C99
491 /* need additional step to expand APLOG_MARK first */
492 #define ap_log_cerror(...) ap_log_cerror__(__VA_ARGS__)
493 #define ap_log_cerror__(file, line, mi, level, status, c, ...) \
494  do { if (APLOG_C_MODULE_IS_LEVEL(c, mi, level)) \
495  ap_log_cerror_(file, line, mi, level, status, c, __VA_ARGS__); \
496  } while(0)
497 #else
498 #define ap_log_cerror ap_log_cerror_
499 #endif
500 AP_DECLARE(void) ap_log_cerror_(const char *file, int line, int module_index,
501  int level, apr_status_t status,
502  const conn_rec *c, const char *fmt, ...)
503  __attribute__((format(printf,7,8)));
504 #endif
505 
531 #ifdef DOXYGEN
532 AP_DECLARE(void) ap_log_cserror(const char *file, int line, int module_index,
533  int level, apr_status_t status,
534  const conn_rec *c, const server_rec *s,
535  const char *fmt, ...);
536 #else
537 #ifdef AP_HAVE_C99
538 /* need additional step to expand APLOG_MARK first */
539 #define ap_log_cserror(...) ap_log_cserror__(__VA_ARGS__)
540 #define ap_log_cserror__(file, line, mi, level, status, c, s, ...) \
541  do { if (APLOG_CS_MODULE_IS_LEVEL(c, s, mi, level)) \
542  ap_log_cserror_(file, line, mi, level, status, c, s, \
543  __VA_ARGS__); \
544  } while(0)
545 #else
546 #define ap_log_cserror ap_log_cserror_
547 #endif
548 AP_DECLARE(void) ap_log_cserror_(const char *file, int line, int module_index,
549  int level, apr_status_t status,
550  const conn_rec *c, const server_rec *s,
551  const char *fmt, ...)
552  __attribute__((format(printf,8,9)));
553 #endif
554 
555 /*
556  * The buffer logging functions, ap_log_data, ap_log_rdata, ap_log_cdata,
557  * and ap_log_csdata log a buffer in printable and hex format. The exact
558  * format is controlled by processing flags, described next.
559  */
560 
568 #define AP_LOG_DATA_DEFAULT 0
569 #define AP_LOG_DATA_SHOW_OFFSET 1
570 
590 #ifdef DOXYGEN
591 AP_DECLARE(void) ap_log_data(const char *file, int line, int module_index,
592  int level, const server_rec *s, const char *label,
593  const void *data, apr_size_t len, unsigned int flags);
594 #else
595 #ifdef AP_HAVE_C99
596 /* need additional step to expand APLOG_MARK first */
597 #define ap_log_data(...) ap_log_data__(__VA_ARGS__)
598 /* need server_rec *sr = ... for the case if s is verbatim NULL */
599 #define ap_log_data__(file, line, mi, level, s, ...) \
600  do { const server_rec *sr__ = s; if (APLOG_MODULE_IS_LEVEL(sr__, mi, level)) \
601  ap_log_data_(file, line, mi, level, sr__, __VA_ARGS__); \
602  } while(0)
603 #else
604 #define ap_log_data ap_log_data_
605 #endif
606 AP_DECLARE(void) ap_log_data_(const char *file, int line, int module_index,
607  int level, const server_rec *s, const char *label,
608  const void *data, apr_size_t len, unsigned int flags);
609 #endif
610 
629 #ifdef DOXYGEN
630 AP_DECLARE(void) ap_log_rdata(const char *file, int line, int module_index,
631  int level, const request_rec *r, const char *label,
632  const void *data, apr_size_t len, unsigned int flags);
633 #else
634 #ifdef AP_HAVE_C99
635 /* need additional step to expand APLOG_MARK first */
636 #define ap_log_rdata(...) ap_log_rdata__(__VA_ARGS__)
637 #define ap_log_rdata__(file, line, mi, level, r, ...) \
638  do { if (APLOG_R_MODULE_IS_LEVEL(r, mi, level)) \
639  ap_log_rdata_(file, line, mi, level, r, __VA_ARGS__); \
640  } while(0)
641 #else
642 #define ap_log_rdata ap_log_rdata_
643 #endif
644 AP_DECLARE(void) ap_log_rdata_(const char *file, int line, int module_index,
645  int level, const request_rec *r, const char *label,
646  const void *data, apr_size_t len, unsigned int flags);
647 #endif
648 
667 #ifdef DOXYGEN
668 AP_DECLARE(void) ap_log_cdata(const char *file, int line, int module_index,
669  int level, const conn_rec *c, const char *label,
670  const void *data, apr_size_t len, unsigned int flags);
671 #else
672 #ifdef AP_HAVE_C99
673 /* need additional step to expand APLOG_MARK first */
674 #define ap_log_cdata(...) ap_log_cdata__(__VA_ARGS__)
675 #define ap_log_cdata__(file, line, mi, level, c, ...) \
676  do { if (APLOG_C_MODULE_IS_LEVEL(c, mi, level)) \
677  ap_log_cdata_(file, line, mi, level, c, __VA_ARGS__); \
678  } while(0)
679 #else
680 #define ap_log_cdata ap_log_cdata_
681 #endif
682 AP_DECLARE(void) ap_log_cdata_(const char *file, int line, int module_index,
683  int level, const conn_rec *c, const char *label,
684  const void *data, apr_size_t len, unsigned int flags);
685 #endif
686 
707 #ifdef DOXYGEN
708 AP_DECLARE(void) ap_log_csdata(const char *file, int line, int module_index,
709  int level, const conn_rec *c, const server_rec *s,
710  const char *label, const void *data,
711  apr_size_t len, unsigned int flags);
712 #else
713 #ifdef AP_HAVE_C99
714 /* need additional step to expand APLOG_MARK first */
715 #define ap_log_csdata(...) ap_log_csdata__(__VA_ARGS__)
716 #define ap_log_csdata__(file, line, mi, level, c, s, ...) \
717  do { if (APLOG_CS_MODULE_IS_LEVEL(c, s, mi, level)) \
718  ap_log_csdata_(file, line, mi, level, c, s, __VA_ARGS__); \
719  } while(0)
720 #else
721 #define ap_log_cdata ap_log_cdata_
722 #endif
723 AP_DECLARE(void) ap_log_csdata_(const char *file, int line, int module_index,
724  int level, const conn_rec *c, const server_rec *s,
725  const char *label, const void *data,
726  apr_size_t len, unsigned int flags);
727 #endif
728 
734 
742 
749 
756 AP_DECLARE(void) ap_log_pid(apr_pool_t *p, const char *fname);
757 
764 AP_DECLARE(void) ap_remove_pid(apr_pool_t *p, const char *fname);
765 
773 AP_DECLARE(apr_status_t) ap_read_pid(apr_pool_t *p, const char *filename, pid_t *mypid);
774 
776 typedef struct piped_log piped_log;
777 
787 
796  const char *program,
797  apr_cmdtype_e cmdtype);
798 
804 
811 
818 
828  (const conn_rec *c, const request_rec *r, const char **id))
829 
830 
831 #ifdef __cplusplus
832 }
833 #endif
834 
835 #endif /* !APACHE_HTTP_LOG_H */
#define AP_DECLARE_HOOK(ret, name, args)
Definition: ap_hooks.h:74
APR Thread and Process Library.
void ap_log_cdata(const char *file, int line, int module_index, int level, const conn_rec *c, const char *label, const void *data, apr_size_t len, unsigned int flags)
apr_status_t ap_replace_stderr_log(apr_pool_t *p, const char *file)
void ap_log_perror(const char *file, int line, int module_index, int level, apr_status_t status, apr_pool_t *p, const char *fmt,...)
AP_DECLARE_DATA int ap_default_loglevel
void ap_log_cerror(const char *file, int line, int module_index, int level, apr_status_t status, const conn_rec *c, const char *fmt,...)
apr_file_t * ap_piped_log_read_fd(piped_log *pl)
void ap_close_piped_log(piped_log *pl)
piped_log * ap_open_piped_log(apr_pool_t *p, const char *program)
apr_status_t ap_read_pid(apr_pool_t *p, const char *filename, pid_t *mypid)
void ap_log_data(const char *file, int line, int module_index, int level, const server_rec *s, const char *label, const void *data, apr_size_t len, unsigned int flags)
void ap_log_rerror(const char *file, int line, int module_index, int level, apr_status_t status, const request_rec *r, const char *fmt,...)
void ap_remove_pid(apr_pool_t *p, const char *fname)
void ap_log_error(const char *file, int line, int module_index, int level, apr_status_t status, const server_rec *s, const char *fmt,...)
void ap_open_stderr_log(apr_pool_t *p)
void ap_log_csdata(const char *file, int line, int module_index, int level, const conn_rec *c, const server_rec *s, const char *label, const void *data, apr_size_t len, unsigned int flags)
void ap_error_log2stderr(server_rec *s)
piped_log * ap_open_piped_log_ex(apr_pool_t *p, const char *program, apr_cmdtype_e cmdtype)
void ap_log_rdata(const char *file, int line, int module_index, int level, const request_rec *r, const char *label, const void *data, apr_size_t len, unsigned int flags)
void ap_logs_child_init(apr_pool_t *p, server_rec *s)
int ap_open_logs(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s_main)
apr_file_t * ap_piped_log_write_fd(piped_log *pl)
void ap_log_mpm_common(server_rec *s)
void ap_log_pid(apr_pool_t *p, const char *fname)
void ap_log_cserror(const char *file, int line, int module_index, int level, apr_status_t status, const conn_rec *c, const server_rec *s, const char *fmt,...)
struct piped_log piped_log
Definition: http_log.h:776
void ap_log_command_line(apr_pool_t *p, server_rec *s)
dav_resource int dav_locktoken dav_response int flags
Definition: mod_dav.h:1458
request_rec * r
Definition: mod_dav.h:518
int status
Definition: mod_dav.h:141
const char * s
Definition: mod_dav.h:1327
int apr_status_t
Definition: apr_errno.h:44
#define __attribute__(__x)
Definition: apr.h:63
size_t apr_size_t
Definition: apr.h:394
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
apr_cmdtype_e
Definition: apr_thread_proc.h:46
int generate_log_id(const conn_rec *c, const request_rec *r, const char **id)
Apache Configuration.
#define AP_DECLARE_DATA
Definition: macros.h:15
#define AP_DECLARE(x)
Definition: macros.h:1
Definition: apr_arch_file_io.h:107
Structure to store things which are per connection.
Definition: httpd.h:1193
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