You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/04/29 16:21:32 UTC
DO NOT REPLY [Bug 19428] New: -
FileLogger - auto create new log file after being deleted
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