appender.activateOptions();// ����Ҫ������ԭ����־���ݻᱻ���
return appender;
}
private static Appender buildMatrixStaticAppender(String name, String fileName, String pattern){
DailyMaxRollingFileAppender appender = new DailyMaxRollingFileAppender();
appender.setName(name);
appender.setAppend(true);
appender.setEncoding("GBK");
appender.setLayout(new PatternLayout(pattern));
appender.setDatePattern("'.'yyyy-MM-dd-HH");
appender.setMaxBackupIndex(12);
appender.setFile(new File(getLogPath(), fileName).getAbsolutePath());
appender.activateOptions();// ����Ҫ������ԭ����־���ݻᱻ���
return appender;
}