Package org.apache.log4j

Examples of org.apache.log4j.Appender.activateOptions()


      appender.setMaxFileSize(DEF_APPENDER_MAXFILESIZE);
      appender.setMaxBackupIndex(DEF_APPENDER_MAXBACKUP);
      PatternLayout layout = new PatternLayout(DEF_APPENDER_PATTERN);
      appender.setLayout(layout);
      appender.setFile(filename);
      appender.activateOptions();
      //add into the logger
      logger.addAppender(appender);
    }
   
    //keep the logfile name
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.