tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util/qlog Logger.java
Date Tue, 30 Apr 2002 05:21:53 GMT
billbarker    02/04/29 22:21:53

  Modified:    src/share/org/apache/tomcat/util/qlog Logger.java
  Log:
  Open the log file with "append".
  
  This allows the logfile rotation to be configured to be other than daily.
  
  Revision  Changes    Path
  1.4       +1 -1      jakarta-tomcat/src/share/org/apache/tomcat/util/qlog/Logger.java
  
  Index: Logger.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/qlog/Logger.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Logger.java	1 Jun 2001 17:41:45 -0000	1.3
  +++ Logger.java	30 Apr 2002 05:21:53 -0000	1.4
  @@ -164,7 +164,7 @@
               file=new File(logName);
   	    if (!file.exists())
   		new File(file.getParent()).mkdirs();
  -	    this.sink = new PrintWriter( new FileWriter(logName));
  +	    this.sink = new PrintWriter( new FileWriter(logName), true);
   	} catch (IOException ex) {
   	    System.err.print("Unable to open log file: "+path+"! ");
   	    System.err.println(" Using stderr as the default.");
  
  
  

--
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