From: Stefan Fritsch Date: Sat, 25 Sep 2010 11:12:44 +0000 (+0000) Subject: Add some more items X-Git-Tag: 2.3.9~434 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8a8860c019225e990c059dd87c945ad07392860;p=apache Add some more items Add section about how to handle logging changes git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1001193 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/developer/new_api_2_4.xml b/docs/manual/developer/new_api_2_4.xml index 21bc4e0e06..90930074fc 100644 --- a/docs/manual/developer/new_api_2_4.xml +++ b/docs/manual/developer/new_api_2_4.xml @@ -44,6 +44,9 @@ HTML reference with make docs.

+
+ Changed APIs +
ap_expr (NEW!)

Introduces a new API to parse and evaluate boolean and algebraic @@ -106,6 +109,8 @@

  • REMOVED ap_default_type, ap_requires, all 2.2 authnz API
  • Introduces Optional Functions for logio and authnz
  • New function ap_get_server_name_for_url to support ipv6 literals.
  • +
  • New function ap_register_errorlog_handler to register errorlog + format string handlers.
  • @@ -114,6 +119,7 @@
    + + +
    + Specific information on upgrading modules from 2.2 + +
    + Logging +

    In order to take advantage of per-module loglevel configuration, any + source file that calls the ap_log_* functions should declare + which module it belongs to. If the module's module_struct is called + foo_module, the following code can be used to remain + backward compatible with HTTPD 2.0 and 2.2:

    + + #include <http_log.h>
    +
    + #ifdef APLOG_USE_MODULE
    + APLOG_USE_MODULE(foo)
    + #endif +
    +

    The number of parameters of the ap_log_* functions and the + definition of APLOG_MARK has changed. Normally, the change + is completely transparent. However, if a module implements wrapper + functions for ap_log_* and uses APLOG_MARK + when calling these wrappers, some adjustments are necessary. + The easiest way is for the module to define and use a different macro + that expands to the parameters required by the log wrapper functions. + APLOG_MARK should only be used when calling + ap_log_* without additional wrappers. In this way, the + code will remain compatible with HTTPD 2.0 and 2.2.

    +
    + +
    +