From 391ca1147816570c6639a968e8e48c9e0b8ab8ac Mon Sep 17 00:00:00 2001
From: Andre Malo
Date: Wed, 1 Jan 2003 21:13:42 +0000
Subject: [PATCH] document DeflateFilterNote changes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98151 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/mod/mod_deflate.xml | 33 +++++++++++++++++++++++++++++++--
1 file changed, 31 insertions(+), 2 deletions(-)
diff --git a/docs/manual/mod/mod_deflate.xml b/docs/manual/mod/mod_deflate.xml
index b9711307ba..a522d701c6 100644
--- a/docs/manual/mod/mod_deflate.xml
+++ b/docs/manual/mod/mod_deflate.xml
@@ -16,7 +16,7 @@ client
your server to be compressed before being sent to the client over
the network.
-The filter documentation
+Filters
Recommended Configuration
This is a sample configuration for the impatient. But please take
@@ -190,9 +190,10 @@ client
DeflateFilterNote
Places the compression ratio in a note for logging
-DeflateFilterNote notename
+DeflateFilterNote [type] notename
server configvirtual host
+type is available since Apache 2.1
The DeflateFilterNote directive
@@ -208,6 +209,34 @@ client
LogFormat '"%r" %b (%{ratio}n) "%{User-agent}i"' deflate
CustomLog logs/deflate_log deflate
+
+
If you want to extract more accurate values from your logs, you
+ can use the type argument to specify the type of data
+ left as note for logging. type can be one of:
+
+
+ Input
+ - Store the byte count of the filter's input stream in the note.
+
+ Output
+ - Store the byte count of the filter's output stream in the note.
+
+ Ratio
+ - Store the compression ratio (
output/input * 100
)
+ in the note. This is the default, if the type argument
+ is omitted.
+
+
+ Thus you may log it this way:
+
+ Accurate Logging
+ DeflateFilterNote Input instream
+ DeflateFilterNote Output outstream
+ DeflateFilterNote Ratio ratio
+
+ LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
+ CustomLog logs/deflate_log deflate
+
mod_log_config
--
2.40.0