tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5526] New: - Log filename rollover in AccessLogValue fails.
Date Thu, 20 Dec 2001 05:57:06 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5526>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5526

Log filename rollover in AccessLogValue fails.

           Summary: Log filename rollover in AccessLogValue fails.
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ian@perth.wni.com


The files written to by org.apache.catalina.valves.AccessLogValve do not
necessarily roll-over at midnight.

IMHO the probable reason for this, looking at the code (revision 1.10), is the
following:
The getDate() method called with the invoke() method will reset the currentDate
field within a granularity of 1sec. invoke() then constructs the access log line
and calls log(msg,date). It is within this log() method that the check for file
rollover occurs. However the test will fail unless more than 1 sec has elapsed
since getDate() was called. Since this is highly likely the old file is never
closed and the new file is never opened.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message