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 19428] New: - FileLogger - auto create new log file after being deleted
Date Tue, 29 Apr 2003 14:21:32 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=19428>.
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=19428

FileLogger - auto create new log file after being deleted

           Summary: FileLogger - auto create new log file after being
                    deleted
           Product: Tomcat 4
           Version: 4.1.18
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: rainer@par.univie.ac.at


The FileLogger does not automatically create a new log file if it was deleted.
Therefore a tomcat restart is needed, redeployment doesn't help. But a developer
might only have access to the Mannager application, disturb others etc.

I suggest something like this in the log method:

private File dir = null;

public void log(String msg) {

  if(dir != null && !dir.isFile()) {
    open(); //creates a new file
  }
				
  // Construct the timestamp we will use, if requested
  Timestamp ts = ...

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


Mime
View raw message