Package ch.qos.logback.core.rolling

Examples of ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP


   
    return logEncoder;
  }
       
  protected RollingPolicy initRollingPolicy(String fileName, int maxBackupFiles, String maxFileSize) {
    SizeAndTimeBasedFNATP sizeTimeBasedPolicy = new SizeAndTimeBasedFNATP();
    // the max file size before rolling to a new file
    sizeTimeBasedPolicy.setMaxFileSize(maxFileSize);
    sizeTimeBasedPolicy.setContext(loggerContext);
   
    TimeBasedRollingPolicy policy = new TimeBasedRollingPolicy();
    // set the filename pattern
    policy.setFileNamePattern(fileName);
    // the maximum number of backup files to keep around
View Full Code Here

TOP

Related Classes of ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP

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.