From ecfdf9d9e3fe7556d7b313dcacbd5400afc7cf8f Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Fri, 18 Mar 2011 14:21:01 +0000 Subject: [PATCH] describe the ap_log_error(...,ap_server_conf,...) idiom git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1082933 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/developer/new_api_2_4.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/manual/developer/new_api_2_4.xml b/docs/manual/developer/new_api_2_4.xml index 7a5feccd011..15e98d84c06 100644 --- a/docs/manual/developer/new_api_2_4.xml +++ b/docs/manual/developer/new_api_2_4.xml @@ -286,6 +286,18 @@ ap_log_* without additional wrappers. In this way, the code will remain compatible with HTTPD 2.0 and 2.2.

+

A server_rec pointer must be passed to + ap_log_error() when called after startup. This + was always appropriate, but there are even more limitations with + a NULL server_rec in 2.4 than in + previous releases. Beginning with 2.3.12, the global variable + ap_server_conf can always be used as + the server_rec parameter, as it will be + NULL only when it is valid to pass NULL + to ap_log_error(). ap_server_conf + should be used only when a more appropriate server_rec + is not available.

+

Consider the following changes to take advantage of the new APLOG_TRACE1..8 log levels: