ceki        01/08/14 14:11:52

  Modified:    src/java/org/apache/log4j FileAppender.java
  Log:
  Minor changes.
  
  Revision  Changes    Path
  1.29      +35 -0     jakarta-log4j/src/java/org/apache/log4j/FileAppender.java
  
  Index: FileAppender.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/FileAppender.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- FileAppender.java 2001/08/14 21:00:34     1.28
  +++ FileAppender.java 2001/08/14 21:11:52     1.29
  @@ -183,6 +183,29 @@
     }
   
     /**
  +     Get the value of the <b>BufferedIO</b> option.
  +     
  +     <p>BufferedIO will significatnly increase performance on heavily
  +     loaded systems.
  +
  +  */
  +  public
  +  boolean getBufferedIO() {
  +    return this.bufferedIO;
  +  }
  +  
  + 
  +  /**
  +     Get the size of the IO buffer. 
  +  */
  +  public
  +  int getBufferSize() {
  +    return this.bufferSize;
  +  }
  +  
  +
  +
  +  /**
        The <b>Append</b> option takes a boolean value. It is set to
        <code>true</code> by default. If true, then <code>File</code>
        will be opened in append mode by {@link #setFile setFile} (see
  @@ -210,6 +233,18 @@
     public
     void setBufferedIO(boolean bufferedIO) {
       this.bufferedIO = bufferedIO;
  +    if(bufferedIO) {
  +      immediateFlush = false;
  +    }
  +  }
  +  
  + 
  +  /**
  +     Set the size of the IO buffer.
  +  */
  +  public
  +  void setBufferSize(int bufferSize) {
  +    this.bufferSize = bufferSize;
     }
     
   
  
  
  

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

Reply via email to