You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by co...@apache.org on 2002/02/21 16:11:18 UTC

cvs commit: jakarta-avalon-logkit/src/java/org/apache/log/output/io/rotate RotateStrategy.java RotateStrategyBySize.java RotateStrategyByDateFormat.java

colus       02/02/21 07:11:18

  Modified:    src/java/org/apache/log/output/io/rotate RotateStrategy.java
                        RotateStrategyBySize.java
  Removed:     src/java/org/apache/log/output/io/rotate
                        RotateStrategyByDateFormat.java
  Log:
  Rotation check before writing.
  Fix javadocs.
  
  Revision  Changes    Path
  1.3       +0 -1      jakarta-avalon-logkit/src/java/org/apache/log/output/io/rotate/RotateStrategy.java
  
  Index: RotateStrategy.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-logkit/src/java/org/apache/log/output/io/rotate/RotateStrategy.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RotateStrategy.java	21 Aug 2001 04:49:57 -0000	1.2
  +++ RotateStrategy.java	21 Feb 2002 15:11:18 -0000	1.3
  @@ -26,7 +26,6 @@
        * Check if a log rotation is neccessary at this time.
        *
        * @param data the serialized version of last message written to the log system
  -     * @param event the LogEvent that initiated last message
        * @param file the File that we are writing to
        * @return boolean return true if log rotation is neccessary, else false
        */
  
  
  
  1.6       +6 -6      jakarta-avalon-logkit/src/java/org/apache/log/output/io/rotate/RotateStrategyBySize.java
  
  Index: RotateStrategyBySize.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-logkit/src/java/org/apache/log/output/io/rotate/RotateStrategyBySize.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- RotateStrategyBySize.java	21 Aug 2001 04:49:57 -0000	1.5
  +++ RotateStrategyBySize.java	21 Feb 2002 15:11:18 -0000	1.6
  @@ -14,7 +14,7 @@
    *
    * @author <a href="mailto:bh22351@i-one.at">Bernhard Huber</a>
    */
  -public class RotateStrategyBySize 
  +public class RotateStrategyBySize
       implements RotateStrategy
   {
       private long m_maxSize;
  @@ -22,7 +22,7 @@
   
       /**
        * Rotate logs by size.
  -     * By default do log rotation after writing approx. 1MB of messages
  +     * By default do log rotation before writing approx. 1MB of messages
        */
       public RotateStrategyBySize()
       {
  @@ -32,9 +32,9 @@
       /**
        *  Rotate logs by size.
        *
  -     *  @param max_size rotate after writing max_size [byte] of messages
  +     *  @param maxSize rotate before writing maxSize [byte] of messages
        */
  -    public RotateStrategyBySize( final long maxSize ) 
  +    public RotateStrategyBySize( final long maxSize )
       {
           m_currentSize = 0;
           m_maxSize = maxSize;
  @@ -43,7 +43,7 @@
       /**
        * reset log size written so far.
        */
  -    public void reset() 
  +    public void reset()
       {
           m_currentSize = 0;
       }
  @@ -61,7 +61,7 @@
           {
               m_currentSize = 0;
               return true;
  -        } 
  +        }
           else
           {
               return false;
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>