Package org.apache.log4j.rolling

Examples of org.apache.log4j.rolling.FixedWindowRollingPolicy.activateOptions()


    FixedWindowRollingPolicy rolling = new FixedWindowRollingPolicy();
    rolling.setMinIndex(1);
    rolling.setMaxIndex(maxBackupIndex);
    rfa.setFile(rfa.getFile());
    rolling.setFileNamePattern(rfa.getFile() + ".%i");
    rolling.activateOptions();
    rfa.setRollingPolicy(rolling);

    rfa.activateOptions();
  }
View Full Code Here


    FixedWindowRollingPolicy rolling = new FixedWindowRollingPolicy();
    rolling.setMinIndex(1);
    rolling.setMaxIndex(maxBackupIndex);
    rfa.setFile(rfa.getFile());
    rolling.setFileNamePattern(rfa.getFile() + ".%i");
    rolling.activateOptions();
    rfa.setRollingPolicy(rolling);

    rfa.activateOptions();
  }
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.