diff options
author | Stefan Fritsch <sf@apache.org> | 2010-09-26 09:40:15 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2010-09-26 09:40:15 +0200 |
commit | 107c5573e1521c90a3e735ea72b971e54f87e939 (patch) | |
tree | 5a2687a40cbdef981a354ac80a55c1c8a13f0f2c /include/http_core.h | |
parent | Spelling errors (diff) | |
download | apache2-107c5573e1521c90a3e735ea72b971e54f87e939.tar.xz apache2-107c5573e1521c90a3e735ea72b971e54f87e939.zip |
In ErrorLogFormat, make it possible to log an item only if the loglevel
of the message is higher than a specified value. This allows to achive
the old behaviour for the source file name/line number of being only
logged for debug and higher.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1001381 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/http_core.h')
-rw-r--r-- | include/http_core.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/http_core.h b/include/http_core.h index 9c8fa9e1b2..a4a90461ab 100644 --- a/include/http_core.h +++ b/include/http_core.h @@ -721,11 +721,12 @@ typedef struct ap_errorlog_handler { typedef struct { ap_errorlog_handler_fn_t *func; const char *arg; -#define AP_ERRORLOG_FLAG_FIELD_SEP 1 -#define AP_ERRORLOG_FLAG_MESSAGE 2 -#define AP_ERRORLOG_FLAG_REQUIRED 4 -#define AP_ERRORLOG_FLAG_NULL_AS_HYPHEN 8 +#define AP_ERRORLOG_FLAG_FIELD_SEP 1 /* item starts a new field */ +#define AP_ERRORLOG_FLAG_MESSAGE 2 /* item is the actual error message */ +#define AP_ERRORLOG_FLAG_REQUIRED 4 /* skip whole line if item is zero-length */ +#define AP_ERRORLOG_FLAG_NULL_AS_HYPHEN 8 /* log zero-length item as '-' */ unsigned int flags; + unsigned int min_loglevel; /* only log if level is higher than this */ } ap_errorlog_format_item; AP_DECLARE(void) ap_register_builtin_errorlog_handlers(apr_pool_t *p); |