anders      01/03/20 05:21:51

  Modified:    org/apache/log4j RollingFileAppender.java
  Log:
  Added RollingFileAppender.setMaxFileSize(long).
  
  Revision  Changes    Path
  1.7       +11 -9     jakarta-log4j/org/apache/log4j/RollingFileAppender.java
  
  Index: RollingFileAppender.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/org/apache/log4j/RollingFileAppender.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- RollingFileAppender.java  2001/03/19 12:38:18     1.6
  +++ RollingFileAppender.java  2001/03/20 13:21:48     1.7
  @@ -9,6 +9,7 @@
   
   package org.apache.log4j;
   
  +import java.beans.*;
   import java.io.IOException;
   import java.io.Writer;
   import java.io.FileWriter;
  @@ -47,7 +48,7 @@
     RollingFileAppender() {
       super();
     }
  -
  +  
     /**
       Instantiate a RollingFileAppender and open the file designated by
       <code>filename</code>. The opened filename will become the ouput
  @@ -95,6 +96,15 @@
     int getMaxBackupIndex() {
       return maxBackupIndex;
     }
  +  
  +  /**
  +     Set the maximum size that the output file is allowed to reach
  +     before being rolled over to backup files.
  +   */
  +  public
  +  void setMaxFileSize(long maxFileSize) {
  +    this.maxFileSize = maxFileSize;
  +  }
   
     /**
        Set the maximum size that the output file is allowed to reach
  @@ -112,14 +122,6 @@
       maxFileSize = OptionConverter.toFileSize(value, maxFileSize + 1);
     }
     
  -  /**
  -     Returns the value of the <b>MaxFileSize</b> option.
  -   */
  -  public
  -  long getMaxFileSize() {
  -    return maxFileSize;
  -  }
  -
     public
     synchronized
     void setFile(String fileName, boolean append) throws IOException {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to