Package org.apache.log4j.rolling

Examples of org.apache.log4j.rolling.SizeBasedTriggeringPolicy


  /**
   * Prepares RollingFileAppender for use.
   */
  public void activateOptions() {
    SizeBasedTriggeringPolicy trigger = new SizeBasedTriggeringPolicy();
    trigger.setMaxFileSize(maxFileSize);
    trigger.activateOptions();
    rfa.setTriggeringPolicy(trigger);

    FixedWindowRollingPolicy rolling = new FixedWindowRollingPolicy();
    rolling.setMinIndex(1);
    rolling.setMaxIndex(maxBackupIndex);
View Full Code Here


  /**
   * Prepares RollingFileAppender for use.
   */
  public void activateOptions() {
    SizeBasedTriggeringPolicy trigger = new SizeBasedTriggeringPolicy();
    trigger.setMaxFileSize(maxFileSize);
    trigger.activateOptions();
    rfa.setTriggeringPolicy(trigger);

    FixedWindowRollingPolicy rolling = new FixedWindowRollingPolicy();
    rolling.setMinIndex(1);
    rolling.setMaxIndex(maxBackupIndex);
View Full Code Here

TOP

Related Classes of org.apache.log4j.rolling.SizeBasedTriggeringPolicy

Copyright © 2018 www.massapicom. 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.