Logger rootLogger = Logger.getRootLogger();
TimeBasedRollingPolicy rollingPolicy = new TimeBasedRollingPolicy();
File logDir = new File(gs.getAtlasDir(), "logs");
rollingPolicy.setFileNamePattern(logDir.getAbsolutePath()+"/nunaliit.%d.gz");
rollingPolicy.activateOptions();
RollingFileAppender fileAppender = new RollingFileAppender();
fileAppender.setRollingPolicy(rollingPolicy);
fileAppender.setTriggeringPolicy(rollingPolicy);
fileAppender.setLayout(new PatternLayout("%-5p [%t]: %m%n"));