From: André Malo
Date: Wed, 1 Jan 2003 21:13:42 +0000 (+0000)
Subject: document DeflateFilterNote changes
X-Git-Tag: pre_ajp_proxy~2340
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99178440d035447ed13568ffeb6184b418106ef7;p=apache
document DeflateFilterNote changes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98151 13f79535-47bb-0310-9956-ffa450edef68
---
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