Project

General

Profile

Feature #2133

accesslog support "%n" (compress ratio)

Added by liming over 7 years ago. Updated 7 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_accesslog
Target version:
Start date:
2009-12-31
Due date:
% Done:

100%

Missing in 1.5.x:
No

Description

Administrators usually want to know the compress ratio (actual content-length / original content-length) when using mod_deflate. It's necessary for mod_accesslog to support "%n"

mod_accesslog.patch View (1.09 KB) liming, 2009-12-31 03:46

Associated revisions

Revision 72a5ff1f (diff)
Added by gstrauss 7 months ago

[mod_accesslog] %{ratio}n logs compression ratio (fixes #2133)

mod_deflate and mod_compress now provide data for mod_accesslog
"%{ratio}n%%" log format to log compression ratio

Implementation detail: compression ratio is stored in con->environment
since lighttpd does not currently have concept of module notes, which is
from where n originates. In the future, this might change in
lighttpd, so be sure to use %{ratio}n
% and not %{...}e for this info.

x-ref:
"accesslog support "%n" (compress ratio)"
https://redmine.lighttpd.net/issues/2133

History

#1 Updated by gstrauss 11 months ago

  • Target version deleted (1.5.0)

#2 Updated by gstrauss 11 months ago

  • Category changed from mod_accesslog to mod_deflate

%{VARNAME}n means something different to Apache, and I would prefer to avoid adding conflicts.
https://httpd.apache.org/docs/current/en/mod/mod_log_config.html

As an alternative, mod_deflate might set compression ration in con->environment, which can then be logged by mod_accesslog via %{VARNAME}e

#3 Updated by gstrauss 7 months ago

  • Target version set to 1.4.43

#4 Updated by gstrauss 7 months ago

  • Category changed from mod_deflate to mod_accesslog

#5 Updated by gstrauss 7 months ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100

Also available in: Atom