httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40586] New: - Add option to supress default '-' output
Date Fri, 22 Sep 2006 18:49:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40586>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40586

           Summary: Add option to supress default '-' output
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_log_config
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mkent@magoazul.com


Quick patch for mod_log_config to add a '^' modifier which suppresses the
default output of '-' by process_item whenever it gets a NULL back from a
LogFormat item, outputting an empty string instead.

eg: LogFormat "url: \"%^U\"\n referer: \"%^{Referer}i\"\n agent:
\"%^{User-Agent}i\"" sample

This allows users to solve some ambiguity with items like \"%{Referer}i\" or
\"%{User-Agent}i\" where "-", although rather useless, is a valid referrer if it
was passed in and should treated as such by a log processing program, instead of
being thrown away because it represents an empty value. 

Plus it eliminates the need for anyone writing a log processor to dig through
the code to determine what might happen to output a '-' indicating a non
existent value and handle it accordingly.

Will submit a documentation patch if accepted.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message