File file = TestFileUtils.createTempFile(this, ".log", "QpidCompositeRollingAppender");
File backUpFile = File.createTempFile(file.getName() + ".", ".1." + LogFileHelper.GZIP_EXTENSION);
_appendersFiles.put(QpidCompositeRollingAppender.class.getSimpleName(), Arrays.asList(file, backUpFile));
FileAppender fileAppender = new FileAppender();
DailyRollingFileAppender dailyRollingFileAppender = new DailyRollingFileAppender();
RollingFileAppender rollingFileAppender = new RollingFileAppender();
ExternallyRolledFileAppender externallyRolledFileAppender = new ExternallyRolledFileAppender();
QpidCompositeRollingAppender qpidCompositeRollingAppender = new QpidCompositeRollingAppender();
qpidCompositeRollingAppender.setbackupFilesToPath(_compositeRollingAppenderBackupFolder.getPath());
_appenders = new ArrayList<Appender>();
_appenders.add(fileAppender);
_appenders.add(dailyRollingFileAppender);
_appenders.add(rollingFileAppender);
_appenders.add(externallyRolledFileAppender);
_appenders.add(qpidCompositeRollingAppender);
for (Appender appender : _appenders)
{
FileAppender fa = (FileAppender) appender;
fa.setName(fa.getClass().getSimpleName());
fa.setFile(_appendersFiles.get(fa.getClass().getSimpleName()).get(0).getPath());
}
_helper = new LogFileHelper(_appenders);
}