summaryrefslogtreecommitdiffstats
path: root/include/http_log.h
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>1999-11-19 00:07:53 +0100
committerRyan Bloom <rbb@apache.org>1999-11-19 00:07:53 +0100
commit975ea85ea20d76d8ea25d255300ebc40e610b131 (patch)
tree1a8310bc02afb39ac8027914d7f102ec442a9e2d /include/http_log.h
parentCleaned up the APRFile uses in Apache. Also removed the apr.h header file (diff)
downloadapache2-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.h3
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