Apache HTTPD
Classes | Macros | Typedefs | Functions | Variables
http_log.h File Reference

Apache Logging library. More...

#include "apr_thread_proc.h"
#include "http_config.h"

Go to the source code of this file.

Classes

struct  ap_LINK_generate_log_id_t
 

Macros

#define APLOG_EMERG   0 /* system is unusable */
 
#define APLOG_ALERT   1 /* action must be taken immediately */
 
#define APLOG_CRIT   2 /* critical conditions */
 
#define APLOG_ERR   3 /* error conditions */
 
#define APLOG_WARNING   4 /* warning conditions */
 
#define APLOG_NOTICE   5 /* normal but significant condition */
 
#define APLOG_INFO   6 /* informational */
 
#define APLOG_DEBUG   7 /* debug-level messages */
 
#define APLOG_TRACE1   8 /* trace-level 1 messages */
 
#define APLOG_TRACE2   9 /* trace-level 2 messages */
 
#define APLOG_TRACE3   10 /* trace-level 3 messages */
 
#define APLOG_TRACE4   11 /* trace-level 4 messages */
 
#define APLOG_TRACE5   12 /* trace-level 5 messages */
 
#define APLOG_TRACE6   13 /* trace-level 6 messages */
 
#define APLOG_TRACE7   14 /* trace-level 7 messages */
 
#define APLOG_TRACE8   15 /* trace-level 8 messages */
 
#define APLOG_LEVELMASK   15 /* mask off the level value */
 
#define APLOG_NOERRNO   (APLOG_LEVELMASK + 1)
 
#define APLOG_TOCLIENT   ((APLOG_LEVELMASK + 1) * 2)
 
#define APLOG_STARTUP   ((APLOG_LEVELMASK + 1) * 4)
 
#define DEFAULT_LOGLEVEL   APLOG_WARNING
 
#define APLOGNO(n)   "AH" #n ": "
 
#define APLOG_NO_MODULE   -1
 
#define APLOG_MODULE_INDEX    (aplog_module_index ? *aplog_module_index : APLOG_NO_MODULE)
 
#define APLOG_MODULE_IS_LEVEL(s, module_index, level)
 
#define APLOG_C_MODULE_IS_LEVEL(c, module_index, level)
 
#define APLOG_CS_MODULE_IS_LEVEL(c, s, module_index, level)
 
#define APLOG_R_MODULE_IS_LEVEL(r, module_index, level)
 
#define APLOG_IS_LEVEL(s, level)    APLOG_MODULE_IS_LEVEL(s,APLOG_MODULE_INDEX,level)
 
#define APLOG_C_IS_LEVEL(c, level)    APLOG_C_MODULE_IS_LEVEL(c,APLOG_MODULE_INDEX,level)
 
#define APLOG_CS_IS_LEVEL(c, s, level)    APLOG_CS_MODULE_IS_LEVEL(c,s,APLOG_MODULE_INDEX,level)
 
#define APLOG_R_IS_LEVEL(r, level)    APLOG_R_MODULE_IS_LEVEL(r,APLOG_MODULE_INDEX,level)
 
#define APLOGinfo(s)   APLOG_IS_LEVEL(s,APLOG_INFO)
 
#define APLOGdebug(s)   APLOG_IS_LEVEL(s,APLOG_DEBUG)
 
#define APLOGtrace1(s)   APLOG_IS_LEVEL(s,APLOG_TRACE1)
 
#define APLOGtrace2(s)   APLOG_IS_LEVEL(s,APLOG_TRACE2)
 
#define APLOGtrace3(s)   APLOG_IS_LEVEL(s,APLOG_TRACE3)
 
#define APLOGtrace4(s)   APLOG_IS_LEVEL(s,APLOG_TRACE4)
 
#define APLOGtrace5(s)   APLOG_IS_LEVEL(s,APLOG_TRACE5)
 
#define APLOGtrace6(s)   APLOG_IS_LEVEL(s,APLOG_TRACE6)
 
#define APLOGtrace7(s)   APLOG_IS_LEVEL(s,APLOG_TRACE7)
 
#define APLOGtrace8(s)   APLOG_IS_LEVEL(s,APLOG_TRACE8)
 
#define APLOGrinfo(r)   APLOG_R_IS_LEVEL(r,APLOG_INFO)
 
#define APLOGrdebug(r)   APLOG_R_IS_LEVEL(r,APLOG_DEBUG)
 
#define APLOGrtrace1(r)   APLOG_R_IS_LEVEL(r,APLOG_TRACE1)
 
#define APLOGrtrace2(r)   APLOG_R_IS_LEVEL(r,APLOG_TRACE2)
 
#define APLOGrtrace3(r)   APLOG_R_IS_LEVEL(r,APLOG_TRACE3)
 
#define APLOGrtrace4(r)   APLOG_R_IS_LEVEL(r,APLOG_TRACE4)
 
#define APLOGrtrace5(r)   APLOG_R_IS_LEVEL(r,APLOG_TRACE5)
 
#define APLOGrtrace6(r)   APLOG_R_IS_LEVEL(r,APLOG_TRACE6)
 
#define APLOGrtrace7(r)   APLOG_R_IS_LEVEL(r,APLOG_TRACE7)
 
#define APLOGrtrace8(r)   APLOG_R_IS_LEVEL(r,APLOG_TRACE8)
 
#define APLOGcinfo(c)   APLOG_C_IS_LEVEL(c,APLOG_INFO)
 
#define APLOGcdebug(c)   APLOG_C_IS_LEVEL(c,APLOG_DEBUG)
 
#define APLOGctrace1(c)   APLOG_C_IS_LEVEL(c,APLOG_TRACE1)
 
#define APLOGctrace2(c)   APLOG_C_IS_LEVEL(c,APLOG_TRACE2)
 
#define APLOGctrace3(c)   APLOG_C_IS_LEVEL(c,APLOG_TRACE3)
 
#define APLOGctrace4(c)   APLOG_C_IS_LEVEL(c,APLOG_TRACE4)
 
#define APLOGctrace5(c)   APLOG_C_IS_LEVEL(c,APLOG_TRACE5)
 
#define APLOGctrace6(c)   APLOG_C_IS_LEVEL(c,APLOG_TRACE6)
 
#define APLOGctrace7(c)   APLOG_C_IS_LEVEL(c,APLOG_TRACE7)
 
#define APLOGctrace8(c)   APLOG_C_IS_LEVEL(c,APLOG_TRACE8)
 
#define APLOG_MARK   __FILE__,__LINE__,APLOG_MODULE_INDEX
 
#define ap_log_error   ap_log_error_
 
#define ap_log_perror   ap_log_perror_
 
#define ap_log_rerror   ap_log_rerror_
 
#define ap_log_cerror   ap_log_cerror_
 
#define ap_log_cserror   ap_log_cserror_
 
#define AP_LOG_DATA_DEFAULT   0
 
#define AP_LOG_DATA_SHOW_OFFSET   1
 
#define ap_log_data   ap_log_data_
 
#define ap_log_rdata   ap_log_rdata_
 
#define ap_log_cdata   ap_log_cdata_
 
#define ap_log_cdata   ap_log_cdata_
 

Typedefs

typedef struct piped_log piped_log
 
typedef int ap_HOOK_generate_log_id_t(const conn_rec *c, const request_rec *r, const char **id)
 
typedef struct ap_LINK_generate_log_id_t ap_LINK_generate_log_id_t
 

Functions

void ap_open_stderr_log (apr_pool_t *p)
 
apr_status_t ap_replace_stderr_log (apr_pool_t *p, const char *file)
 
int ap_open_logs (apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s_main)
 
void ap_logs_child_init (apr_pool_t *p, server_rec *s)
 
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,...) __attribute__((format(printf
 
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,...) __attribute__((format(printf
 
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,...) __attribute__((format(printf
 
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,...) __attribute__((format(printf
 
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,...) __attribute__((format(printf
 
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_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_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)
 
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)
 
void ap_log_command_line (apr_pool_t *p, server_rec *s)
 
void ap_log_mpm_common (server_rec *s)
 
void ap_log_pid (apr_pool_t *p, const char *fname)
 
void ap_remove_pid (apr_pool_t *p, const char *fname)
 
apr_status_t ap_read_pid (apr_pool_t *p, const char *filename, pid_t *mypid)
 
piped_logap_open_piped_log (apr_pool_t *p, const char *program)
 
piped_logap_open_piped_log_ex (apr_pool_t *p, const char *program, apr_cmdtype_e cmdtype)
 
void ap_close_piped_log (piped_log *pl)
 
apr_file_tap_piped_log_read_fd (piped_log *pl)
 
apr_file_tap_piped_log_write_fd (piped_log *pl)
 
void ap_hook_generate_log_id (ap_HOOK_generate_log_id_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
int ap_run_generate_log_id (const conn_rec *c, const request_rec *r, const char **id)
 
apr_array_header_tap_hook_get_generate_log_id (void)
 

Variables

static int *const aplog_module_index
 
int ap_default_loglevel
 

Detailed Description

Apache Logging library.

Definition in file http_log.h.