use of org.apache.log4j.RollingFileAppender in project dhis2-core by dhis2.
the class Log4JLogConfigInitializer method configureRootLogger.
/**
* Configures a root file logger.
*
* @param filename the filename to output logging to.
*/
private void configureRootLogger(String filename) {
String file = getLogFile(filename);
RollingFileAppender appender = getRollingFileAppender(file);
Logger.getRootLogger().addAppender(appender);
log.info("Added root logger using file: " + file);
}
Aggregations