Project

General

Profile

« Previous | Next » 

Revision 8883b968

Added by Andreas Kohlbecker over 13 years ago

naming the file appender

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/config/LoggingConfigurer.java
25 25
@Configuration
26 26
public class LoggingConfigurer extends AbstractWebApplicationConfigurer implements InitializingBean  {
27 27

  
28
	/**
29
	 * 
30
	 */
31
	private static final String ROLLING_FILE_APPENDER = "rollingFileAppender";
28 32
	private static final String CDM_LOGFILE = "cdm.logfile";
29 33

  
30 34
	protected void configureLogFile() {
......
36 40
		}
37 41
		try {
38 42
			RollingFileAppender appender = new RollingFileAppender(layout, logFile);
43
			appender.setName(ROLLING_FILE_APPENDER);
39 44
			appender.setMaxBackupIndex(3);
40 45
			appender.setMaxFileSize("2MB");
41 46
			Logger.getRootLogger().addAppender(appender);

Also available in: Unified diff