diff options
author | Ryan Bloom <rbb@apache.org> | 1999-11-19 00:07:53 +0100 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 1999-11-19 00:07:53 +0100 |
commit | 975ea85ea20d76d8ea25d255300ebc40e610b131 (patch) | |
tree | 1a8310bc02afb39ac8027914d7f102ec442a9e2d /include/http_log.h | |
parent | Cleaned up the APRFile uses in Apache. Also removed the apr.h header file (diff) | |
download | apache2-975ea85ea20d76d8ea25d255300ebc40e610b131.tar.xz apache2-975ea85ea20d76d8ea25d255300ebc40e610b131.zip |
First step in removing the fprintf(stderr problem from Apache. Basically,
I defined APLOG_STARTUP, which refrains from printing the date string
and the log level information in log_error_core. I then changed all the
fprintf(stderr calls to ap_log_error, and used APLOG_STARTUP.
log_error_core on Unix takes care of creating a log file and directing
it to stderr if a log file isn't already active. I will continue to
make these changes tomorrow. Currently, the main code and the dexter
mpm have been modified.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84134 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/http_log.h')
-rw-r--r-- | include/http_log.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/http_log.h b/include/http_log.h index 88d4c1bafe..da7b1555e2 100644 --- a/include/http_log.h +++ b/include/http_log.h @@ -98,6 +98,9 @@ extern "C" { #define APLOG_WIN32ERROR ((APLOG_LEVELMASK+1) * 2) #endif +/* normal but significant condition on startup, usually printed to stderr */ +#define APLOG_STARTUP ((APLOG_LEVELMASK + 1) * 4) + #ifndef DEFAULT_LOGLEVEL #define DEFAULT_LOGLEVEL APLOG_WARNING #endif |