From 1ed544d05bcc07e23ab3a1a9974fe9b4be6ae243 Mon Sep 17 00:00:00 2001 From: Martin Vobruba Date: Tue, 24 May 2016 18:13:00 +0200 Subject: Enable per-module logging in Apache 2.4+ --- sapi/apache2handler/php_apache.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sapi/apache2handler/php_apache.h') diff --git a/sapi/apache2handler/php_apache.h b/sapi/apache2handler/php_apache.h index c1c52f5697..69c01bbe02 100644 --- a/sapi/apache2handler/php_apache.h +++ b/sapi/apache2handler/php_apache.h @@ -24,10 +24,16 @@ #include "httpd.h" #include "http_config.h" #include "http_core.h" +#include "http_log.h" #include "php.h" #include "main/php_streams.h" +/* Enable per-module logging in Apache 2.4+ */ +#ifdef APLOG_USE_MODULE +APLOG_USE_MODULE(php7); +#endif + /* Declare this so we can get to it from outside the sapi_apache2.c file */ extern module AP_MODULE_DECLARE_DATA php7_module; -- cgit v1.2.1