ceki        2002/10/22 14:29:29

  Added:       src/java/org/apache/log4j/rolling CopyingPolicy.java
                        TriggeringPolicy.java
  Log:
  Foundation for more powerful log file rolling.
  
  Revision  Changes    Path
  1.1                  
jakarta-log4j/src/java/org/apache/log4j/rolling/CopyingPolicy.java
  
  Index: CopyingPolicy.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software
   * License version 1.1, a copy of which has been included with this
   * distribution in the LICENSE.txt file.  */
  
  /**
   * A <code>CopyingPolicy</code> is responsible for copying a log
   * file after the occurence of a rollover triggering event.
   *
   * @author Ceki G&uuml;lc&uuml;
   * */
  package org.apache.log4j.rolling;
  
  public interface CopyingPolicy {
    
    /** 
     * Copy the file passed as parameter to an appropriate location.
     * */
    public void copy(File oldLogFile);
  }
  
  
  
  1.1                  
jakarta-log4j/src/java/org/apache/log4j/rolling/TriggeringPolicy.java
  
  Index: TriggeringPolicy.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software
   * License version 1.1, a copy of which has been included with this
   * distribution in the LICENSE.txt file.  */
  
  /**
   * A <code>TriggeringPolicy</code> determines the time where rollover
   * should occur.  
   *
   * @author Ceki G&uuml;lc&uuml;
   * */
  package org.apache.log4j.rolling;
  
  public interface TriggeringPolicy {
    
    /** 
     * Should rolllover be triggered at this time?
     * */
    public boolean isTriggeringEvent(long size);
  
    public boolean isTriggeringEvent();
  
    public boolean isSizeSensitive();
  
  }
  
  
  

--
To unsubscribe, e-mail:   <mailto:log4j-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@;jakarta.apache.org>

Reply via email to