|
Apache HTTPD
|
Classes | |
| struct | ap_LINK_generate_log_id_t |
Typedefs | |
| typedef struct piped_log | piped_log |
| typedef struct ap_LINK_generate_log_id_t | ap_LINK_generate_log_id_t |
Variables | |
| static int *const | aplog_module_index |
| int | ap_default_loglevel |
| #define ap_log_cdata ap_log_cdata_ |
ap_log_cdata() - log buffers which are related to a particular connection.
| file | The file in which this function is called |
| line | The line number on which this function is called |
| module_index | The module_index of the module logging this buffer |
| level | The log level |
| c | The connection which we are logging for |
| label | A label for the buffer, to be logged preceding the buffer |
| data | The buffer to be logged |
| len | The length of the buffer |
| flags | Special processing flags like AP_LOG_DATA_SHOW_OFFSET |
ap_log_csdata() - log buffers which are related to a particular connection and to a vhost other than c->base_server.
| file | The file in which this function is called |
| line | The line number on which this function is called |
| module_index | The module_index of the module logging this buffer |
| level | The log level |
| c | The connection which we are logging for |
| s | The server which we are logging for |
| label | A label for the buffer, to be logged preceding the buffer |
| data | The buffer to be logged |
| len | The length of the buffer |
| flags | Special processing flags like AP_LOG_DATA_SHOW_OFFSET |
Definition at line 680 of file http_log.h.
| #define ap_log_cdata ap_log_cdata_ |
ap_log_cdata() - log buffers which are related to a particular connection.
| file | The file in which this function is called |
| line | The line number on which this function is called |
| module_index | The module_index of the module logging this buffer |
| level | The log level |
| c | The connection which we are logging for |
| label | A label for the buffer, to be logged preceding the buffer |
| data | The buffer to be logged |
| len | The length of the buffer |
| flags | Special processing flags like AP_LOG_DATA_SHOW_OFFSET |
ap_log_csdata() - log buffers which are related to a particular connection and to a vhost other than c->base_server.
| file | The file in which this function is called |
| line | The line number on which this function is called |
| module_index | The module_index of the module logging this buffer |
| level | The log level |
| c | The connection which we are logging for |
| s | The server which we are logging for |
| label | A label for the buffer, to be logged preceding the buffer |
| data | The buffer to be logged |
| len | The length of the buffer |
| flags | Special processing flags like AP_LOG_DATA_SHOW_OFFSET |
Definition at line 680 of file http_log.h.
| #define ap_log_cerror ap_log_cerror_ |
ap_log_cerror() - log messages which are related to a particular connection. This uses a printf-like format to log messages to the error_log.
| file | The file in which this function is called |
| line | The line number on which this function is called |
| level | The level of this error message |
| module_index | The module_index of the module generating this message |
| status | The status code from the previous command |
| c | The connection which we are logging for |
| fmt | The format string |
| ... | The arguments to use to fill out fmt. |
Definition at line 498 of file http_log.h.
| #define ap_log_cserror ap_log_cserror_ |
ap_log_cserror() - log messages which are related to a particular connection and to a vhost other than c->base_server. This uses a printf-like format to log messages to the error_log.
| file | The file in which this function is called |
| line | The line number on which this function is called |
| level | The level of this error message |
| module_index | The module_index of the module generating this message |
| status | The status code from the previous command |
| c | The connection which we are logging for |
| s | The server which we are logging for |
| fmt | The format string |
| ... | The arguments to use to fill out fmt. |
Definition at line 546 of file http_log.h.
| #define ap_log_data ap_log_data_ |
ap_log_data() - log buffers which are not related to a particular request or connection.
| file | The file in which this function is called |
| line | The line number on which this function is called |
| module_index | The module_index of the module logging this buffer |
| level | The log level |
| s | The server on which we are logging |
| label | A label for the buffer, to be logged preceding the buffer |
| data | The buffer to be logged |
| len | The length of the buffer |
| flags | Special processing flags like AP_LOG_DATA_SHOW_OFFSET |
Definition at line 604 of file http_log.h.
| #define AP_LOG_DATA_DEFAULT 0 |
Processing flags for ap_log_data() et al
AP_LOG_DATA_DEFAULT - default formatting, with printable chars and hex AP_LOG_DATA_SHOW_OFFSET - prefix each line with hex offset from the start of the buffer
Definition at line 568 of file http_log.h.
| #define AP_LOG_DATA_SHOW_OFFSET 1 |
Definition at line 569 of file http_log.h.
| #define ap_log_error ap_log_error_ |
ap_log_error() - log messages which are not related to a particular request or connection. This uses a printf-like format to log messages to the error_log.
| file | The file in which this function is called |
| line | The line number on which this function is called |
| module_index | The module_index of the module generating this message |
| level | The level of this error message |
| status | The status code from the previous command |
| s | The server on which we are logging |
| fmt | The format string |
| ... | The arguments to use to fill out fmt. |
Definition at line 370 of file http_log.h.
| #define ap_log_perror ap_log_perror_ |
ap_log_perror() - log messages which are not related to a particular request, connection, or virtual server. This uses a printf-like format to log messages to the error_log.
| file | The file in which this function is called |
| line | The line number on which this function is called |
| module_index | ignored dummy value for use by APLOG_MARK |
| level | The level of this error message |
| status | The status code from the previous command |
| p | The pool which we are logging for |
| fmt | The format string |
| ... | The arguments to use to fill out fmt. |
Definition at line 412 of file http_log.h.
| #define ap_log_rdata ap_log_rdata_ |
ap_log_rdata() - log buffers which are related to a particular request.
| file | The file in which this function is called |
| line | The line number on which this function is called |
| module_index | The module_index of the module logging this buffer |
| level | The log level |
| r | The request which we are logging for |
| label | A label for the buffer, to be logged preceding the buffer |
| data | The buffer to be logged |
| len | The length of the buffer |
| flags | Special processing flags like AP_LOG_DATA_SHOW_OFFSET |
Definition at line 642 of file http_log.h.
| #define ap_log_rerror ap_log_rerror_ |
ap_log_rerror() - log messages which are related to a particular request. This uses a printf-like format to log messages to the error_log.
| file | The file in which this function is called |
| line | The line number on which this function is called |
| module_index | The module_index of the module generating this message |
| level | The level of this error message |
| status | The status code from the previous command |
| r | The request which we are logging for |
| fmt | The format string |
| ... | The arguments to use to fill out fmt. |
Definition at line 454 of file http_log.h.
| #define APLOG_ALERT 1 /* action must be taken immediately */ |
Definition at line 65 of file http_log.h.
| #define APLOG_C_IS_LEVEL | ( | c, | |
| level | |||
| ) | APLOG_C_MODULE_IS_LEVEL(c,APLOG_MODULE_INDEX,level) |
Definition at line 225 of file http_log.h.
Definition at line 187 of file http_log.h.
| #define APLOG_CRIT 2 /* critical conditions */ |
Definition at line 66 of file http_log.h.
| #define APLOG_CS_IS_LEVEL | ( | c, | |
| s, | |||
| level | |||
| ) | APLOG_CS_MODULE_IS_LEVEL(c,s,APLOG_MODULE_INDEX,level) |
Definition at line 227 of file http_log.h.
Definition at line 191 of file http_log.h.
Definition at line 71 of file http_log.h.
Definition at line 67 of file http_log.h.
| #define APLOG_INFO 6 /* informational */ |
Definition at line 70 of file http_log.h.
| #define APLOG_IS_LEVEL | ( | s, | |
| level | |||
| ) | APLOG_MODULE_IS_LEVEL(s,APLOG_MODULE_INDEX,level) |
Definition at line 223 of file http_log.h.
| #define APLOG_MARK __FILE__,__LINE__,APLOG_MODULE_INDEX |
APLOG_MARK is a convenience macro for use as the first three parameters in ap_log_error() and related functions, i.e. file, line, and module_index.
The module_index parameter was introduced in version 2.3.6. Before that version, APLOG_MARK only replaced the file and line parameters. This means that APLOG_MARK can be used with ap_log_*error in all versions of Apache httpd.
Definition at line 283 of file http_log.h.
| #define APLOG_MODULE_INDEX (aplog_module_index ? *aplog_module_index : APLOG_NO_MODULE) |
APLOG_MODULE_INDEX contains the module_index of the current module if it has been set via the APLOG_USE_MODULE or AP_DECLARE_MODULE macro. Otherwise it contains APLOG_NO_MODULE (for example in unmodified httpd 2.2 modules).
If APLOG_MARK is used in ap_log_error() and related functions, APLOG_MODULE_INDEX will be passed as module_index. In cases where APLOG_MARK cannot be used, APLOG_MODULE_INDEX should normally be passed as module_index.
Definition at line 168 of file http_log.h.
APLOG_MAX_LOGLEVEL can be defined to remove logging above some specified level at compile time.
This requires a C99 compiler.
Definition at line 182 of file http_log.h.
| #define APLOG_NO_MODULE -1 |
APLOG_NO_MODULE may be passed as module_index to ap_log_error() and related functions if the module causing the log message is not known. Normally this should not be used directly. Use APLOG_MARK or APLOG_MODULE_INDEX instead.
Definition at line 129 of file http_log.h.
| #define APLOG_NOERRNO (APLOG_LEVELMASK + 1) |
Definition at line 88 of file http_log.h.
| #define APLOG_NOTICE 5 /* normal but significant condition */ |
Definition at line 69 of file http_log.h.
| #define APLOG_R_IS_LEVEL | ( | r, | |
| level | |||
| ) | APLOG_R_MODULE_IS_LEVEL(r,APLOG_MODULE_INDEX,level) |
Definition at line 229 of file http_log.h.
Definition at line 195 of file http_log.h.
| #define APLOG_STARTUP ((APLOG_LEVELMASK + 1) * 4) |
Definition at line 105 of file http_log.h.
| #define APLOG_TOCLIENT ((APLOG_LEVELMASK + 1) * 2) |
Use APLOG_TOCLIENT on ap_log_rerror() to give content handlers the option of including the error text in the ErrorDocument sent back to the client. Setting APLOG_TOCLIENT will cause the error text to be saved in the request_rec->notes table, keyed to the string "error-notes", if and only if:
Definition at line 102 of file http_log.h.
Definition at line 72 of file http_log.h.
Definition at line 73 of file http_log.h.
Definition at line 74 of file http_log.h.
Definition at line 75 of file http_log.h.
Definition at line 76 of file http_log.h.
Definition at line 77 of file http_log.h.
Definition at line 78 of file http_log.h.
Definition at line 79 of file http_log.h.
Definition at line 68 of file http_log.h.
| #define APLOGcdebug | ( | c | ) | APLOG_C_IS_LEVEL(c,APLOG_DEBUG) |
Definition at line 256 of file http_log.h.
| #define APLOGcinfo | ( | c | ) | APLOG_C_IS_LEVEL(c,APLOG_INFO) |
Definition at line 255 of file http_log.h.
| #define APLOGctrace1 | ( | c | ) | APLOG_C_IS_LEVEL(c,APLOG_TRACE1) |
Definition at line 257 of file http_log.h.
| #define APLOGctrace2 | ( | c | ) | APLOG_C_IS_LEVEL(c,APLOG_TRACE2) |
Definition at line 258 of file http_log.h.
| #define APLOGctrace3 | ( | c | ) | APLOG_C_IS_LEVEL(c,APLOG_TRACE3) |
Definition at line 259 of file http_log.h.
| #define APLOGctrace4 | ( | c | ) | APLOG_C_IS_LEVEL(c,APLOG_TRACE4) |
Definition at line 260 of file http_log.h.
| #define APLOGctrace5 | ( | c | ) | APLOG_C_IS_LEVEL(c,APLOG_TRACE5) |
Definition at line 261 of file http_log.h.
| #define APLOGctrace6 | ( | c | ) | APLOG_C_IS_LEVEL(c,APLOG_TRACE6) |
Definition at line 262 of file http_log.h.
| #define APLOGctrace7 | ( | c | ) | APLOG_C_IS_LEVEL(c,APLOG_TRACE7) |
Definition at line 263 of file http_log.h.
| #define APLOGctrace8 | ( | c | ) | APLOG_C_IS_LEVEL(c,APLOG_TRACE8) |
Definition at line 264 of file http_log.h.
| #define APLOGdebug | ( | s | ) | APLOG_IS_LEVEL(s,APLOG_DEBUG) |
Definition at line 234 of file http_log.h.
| #define APLOGinfo | ( | s | ) | APLOG_IS_LEVEL(s,APLOG_INFO) |
Definition at line 233 of file http_log.h.
APLOGNO() should be used at the start of the format string passed to ap_log_error() and friends. The argument must be a 5 digit decimal number. It creates a tag of the form "AH02182: " See docs/log-message-tags/README for details.
Definition at line 117 of file http_log.h.
| #define APLOGrdebug | ( | r | ) | APLOG_R_IS_LEVEL(r,APLOG_DEBUG) |
Definition at line 245 of file http_log.h.
| #define APLOGrinfo | ( | r | ) | APLOG_R_IS_LEVEL(r,APLOG_INFO) |
Definition at line 244 of file http_log.h.
| #define APLOGrtrace1 | ( | r | ) | APLOG_R_IS_LEVEL(r,APLOG_TRACE1) |
Definition at line 246 of file http_log.h.
| #define APLOGrtrace2 | ( | r | ) | APLOG_R_IS_LEVEL(r,APLOG_TRACE2) |
Definition at line 247 of file http_log.h.
| #define APLOGrtrace3 | ( | r | ) | APLOG_R_IS_LEVEL(r,APLOG_TRACE3) |
Definition at line 248 of file http_log.h.
| #define APLOGrtrace4 | ( | r | ) | APLOG_R_IS_LEVEL(r,APLOG_TRACE4) |
Definition at line 249 of file http_log.h.
| #define APLOGrtrace5 | ( | r | ) | APLOG_R_IS_LEVEL(r,APLOG_TRACE5) |
Definition at line 250 of file http_log.h.
| #define APLOGrtrace6 | ( | r | ) | APLOG_R_IS_LEVEL(r,APLOG_TRACE6) |
Definition at line 251 of file http_log.h.
| #define APLOGrtrace7 | ( | r | ) | APLOG_R_IS_LEVEL(r,APLOG_TRACE7) |
Definition at line 252 of file http_log.h.
| #define APLOGrtrace8 | ( | r | ) | APLOG_R_IS_LEVEL(r,APLOG_TRACE8) |
Definition at line 253 of file http_log.h.
| #define APLOGtrace1 | ( | s | ) | APLOG_IS_LEVEL(s,APLOG_TRACE1) |
Definition at line 235 of file http_log.h.
| #define APLOGtrace2 | ( | s | ) | APLOG_IS_LEVEL(s,APLOG_TRACE2) |
Definition at line 236 of file http_log.h.
| #define APLOGtrace3 | ( | s | ) | APLOG_IS_LEVEL(s,APLOG_TRACE3) |
Definition at line 237 of file http_log.h.
| #define APLOGtrace4 | ( | s | ) | APLOG_IS_LEVEL(s,APLOG_TRACE4) |
Definition at line 238 of file http_log.h.
| #define APLOGtrace5 | ( | s | ) | APLOG_IS_LEVEL(s,APLOG_TRACE5) |
Definition at line 239 of file http_log.h.
| #define APLOGtrace6 | ( | s | ) | APLOG_IS_LEVEL(s,APLOG_TRACE6) |
Definition at line 240 of file http_log.h.
| #define APLOGtrace7 | ( | s | ) | APLOG_IS_LEVEL(s,APLOG_TRACE7) |
Definition at line 241 of file http_log.h.
| #define APLOGtrace8 | ( | s | ) | APLOG_IS_LEVEL(s,APLOG_TRACE8) |
Definition at line 242 of file http_log.h.
| #define DEFAULT_LOGLEVEL APLOG_WARNING |
Definition at line 108 of file http_log.h.
| void ap_close_piped_log | ( | piped_log * | pl | ) |
| void ap_error_log2stderr | ( | server_rec * | s | ) |
| apr_array_header_t * ap_hook_get_generate_log_id | ( | void | ) |
| 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, | ||
| ... | |||
| ) |
| void ap_log_command_line | ( | apr_pool_t * | p, |
| server_rec * | s | ||
| ) |
Log the command line used to start the server.
| p | The pool to use for logging |
| s | The server_rec whose process's command line we want to log. The command line is logged to that server's error log. |
| 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, | ||
| ... | |||
| ) |
| 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_log_mpm_common | ( | server_rec * | s | ) |
Log common (various) MPM shared data at startup.
| s | The server_rec of the error log we want to log to. Misc commonly logged data is logged to that server's error log. |
| 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, | ||
| ... | |||
| ) |
| void ap_log_pid | ( | apr_pool_t * | p, |
| const char * | fname | ||
| ) |
Log the current pid of the parent process
| p | The pool to use for processing |
| fname | The name of the file to log to. If the filename is not absolute then it is assumed to be relative to ServerRoot. |
< Modification Time
< Open the file for writing
< Create the file if not there
< Open the file and truncate to 0 length
< Read by user
<
< Write by user
<
< Read by group
<
< Read by others
<
| 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_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 | ||
| ) |
Open the error log and replace stderr with it.
| pconf | Not used |
| plog | The pool to allocate the logs from |
| ptemp | Pool used for temporary allocations |
| s_main | The main server |
< Module has handled this stage.
< Module has served the response completely * - it's safe to die() with no more output
< Module has handled this stage.
< Module has served the response completely * - it's safe to die() with no more output
< Module has handled this stage.
| piped_log * ap_open_piped_log | ( | apr_pool_t * | p, |
| const char * | program | ||
| ) |
| piped_log * ap_open_piped_log_ex | ( | apr_pool_t * | p, |
| const char * | program, | ||
| apr_cmdtype_e | cmdtype | ||
| ) |
| void ap_open_stderr_log | ( | apr_pool_t * | p | ) |
| apr_file_t * ap_piped_log_read_fd | ( | piped_log * | pl | ) |
| apr_file_t * ap_piped_log_write_fd | ( | piped_log * | pl | ) |
| apr_status_t ap_read_pid | ( | apr_pool_t * | p, |
| const char * | filename, | ||
| pid_t * | mypid | ||
| ) |
Retrieve the pid from a pidfile.
| p | The pool to use for processing |
| filename | The name of the file containing the pid. If the filename is not absolute then it is assumed to be relative to ServerRoot. |
| mypid | Pointer to pid_t (valid only if return APR_SUCCESS) |
< Open the file for reading
<
< use OS's default permissions
<
| void ap_remove_pid | ( | apr_pool_t * | p, |
| const char * | fname | ||
| ) |
| apr_status_t ap_replace_stderr_log | ( | apr_pool_t * | p, |
| const char * | file | ||
| ) |
Replace logging to stderr with logging to the given file.
| p | The pool to allocate out of |
| file | Name of the file to log stderr output |
< Append to the end of the file
<
< Open the file for writing
<
< Create the file if not there
<
< Platform dependent flag to enable * large file support, see WARNING below
<
< use OS's default permissions
<
Constant to store module_index for the current file. Objects with static storage duration are set to NULL if not initialized explicitly. This means that if aplog_module_index is not initialized using the APLOG_USE_MODULE or the AP_DECLARE_MODULE macro, we can safely fall back to use APLOG_NO_MODULE. This variable will usually be optimized away.
Definition at line 148 of file http_log.h.