Return-Path:
Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org
Received: (qmail 67814 invoked by uid 500); 1 Jan 2003 21:13:44 -0000
Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm
Precedence: bulk
Reply-To: dev@httpd.apache.org
list-help:
list-unsubscribe:
list-post:
Delivered-To: mailing list cvs@httpd.apache.org
Received: (qmail 67802 invoked by uid 500); 1 Jan 2003 21:13:44 -0000
Delivered-To: apmail-httpd-2.0-cvs@apache.org
Date: 1 Jan 2003 21:13:42 -0000
Message-ID: <20030101211342.84568.qmail@icarus.apache.org>
From: nd@apache.org
To: httpd-2.0-cvs@apache.org
Subject: cvs commit: httpd-2.0/docs/manual/mod mod_deflate.xml
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
nd 2003/01/01 13:13:42
Modified: docs/manual/mod mod_deflate.xml
Log:
document DeflateFilterNote changes
Revision Changes Path
1.14 +31 -2 httpd-2.0/docs/manual/mod/mod_deflate.xml
Index: mod_deflate.xml
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/mod/mod_deflate.xml,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- mod_deflate.xml 22 Dec 2002 15:36:16 -0000 1.13
+++ mod_deflate.xml 1 Jan 2003 21:13:42 -0000 1.14
@@ -16,7 +16,7 @@
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 @@
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
@@ -206,6 +207,34 @@
DeflateFilterNote ratio
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