Package ch.qos.logback.core.rolling

Examples of ch.qos.logback.core.rolling.RollingFileAppender.start()


  protected Logger initLogger(String fileStr) throws IOException {
    RollingPolicy rollingPolicy = initRollingPolicy(fileStr, getMaxLogBackupFiles(), getMaxLogFileSize());
    RollingFileAppender appender = buildAppender(buildEncoder(), rollingPolicy);
   
    rollingPolicy.start();
    appender.start();
   
    // configure the logger for info and add the appender
    return getAndConfigureLogger(appender);
  }
 
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.