www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glennan Carnie <carn...@uk.ibm.com>
Subject general/6965: TransferLog ignores LogFormat directives
Date Tue, 12 Dec 2000 13:52:52 GMT

>Number:         6965
>Category:       general
>Synopsis:       TransferLog ignores LogFormat directives
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Dec 12 06:00:02 PST 2000
>Originator:     carnieg@uk.ibm.com
>Release:        1.3.12
AIX 4.3.3
We are using TransferLogs (as recommended) to rotate our logs daily, using rotatelogs.
Our httpd.conf file is set as follows (excerpt only):

# Log rotation:
# Rotate the logs every 24 hours.
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{cookie}ni\""

TransferLog "|/usr/HTTPServer/bin/rotatelogs /usr/HTTPServer/logs/access_log 86400"

According to the online documentation, the TransferLog directive should use the last defined
LogFormat directive (in our case, the one directly preceding it).  However, the TransferLog
directive seems to ignore the LogFormat and always produces a log using the (default) Common

Note: the formatting works just fine with the CustomLog directive.

These symptoms occur whether rotatelogs is used, or another log rotation utility such as Cronolog.



 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message