From 28bc98b82ff67b095ad6ab00ef9a96bba111a957 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 25 Sep 2016 08:05:05 -0700 Subject: [PATCH] apache.conf.in: include input byte count if available If mod_logio is not available all we can display is the output byte count in the log. But if mod_logio is available we can also display the input byte count and both will include all bytes. To avoid changing the number of fields we combine them with '->' so that if say the request was 155 bytes and the response was 213 bytes the log entry would have '155->213' for the size field when mod_logio is enabled and just 213 (less the headers size) when it's not. Signed-off-by: Kyle J. McKay --- apache.conf.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache.conf.in b/apache.conf.in index 817c628..045c8a5 100644 --- a/apache.conf.in +++ b/apache.conf.in @@ -16,7 +16,7 @@ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" :%{local}p" girocco # %I and %O are only available with the logio_module - LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" :%{local}p" girocco + LogFormat "%h %l %u %t \"%r\" %>s %I->%O \"%{Referer}i\" \"%{User-Agent}i\" :%{local}p" girocco ErrorLog /var/log/apache2/repo-error.log -- 2.11.4.GIT