Examples of RolloverDescription


Examples of org.apache.log4j.rolling.RolloverDescription

  }

  @Override
  public RolloverDescription rollover(String currentActiveFile) {

    RolloverDescription rolloverDescription = super.rollover(currentActiveFile);

    if (rolloverDescription == null) {
      // We'll wait until next rollover before deleting anything
      return null;
    }

    if (maxBackupIndex <= 0) {
      // This means cleanup is deactivated
      return rolloverDescription;
    }

    String activeFileName = rolloverDescription.getActiveFileName();
    boolean append = rolloverDescription.getAppend();
    Action synchronous = rolloverDescription.getSynchronous();
    final Action asynchronous = rolloverDescription.getAsynchronous();

    Action newAsynchronous = new ActionBase() {

      @Override
      public boolean execute() throws IOException {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.