"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "log4j-core/src/test/java/org/apache/logging/log4j/core/config/CustomConfigurationTest.java" between
apache-log4j-2.11.1-src.tar.gz and apache-log4j-2.11.2-src.tar.gz

About: Apache Log4j 2 is a logging library for Java. Source distribution (Java).

CustomConfigurationTest.java  (apache-log4j-2.11.1-src):CustomConfigurationTest.java  (apache-log4j-2.11.2-src)
skipping to change at line 84 skipping to change at line 84
assertSame(listener.getStatusLevel(), Level.INFO); assertSame(listener.getStatusLevel(), Level.INFO);
break; break;
} }
} }
final Layout<? extends Serializable> layout = PatternLayout.newBuilder() final Layout<? extends Serializable> layout = PatternLayout.newBuilder()
.withPattern(PatternLayout.SIMPLE_CONVERSION_PATTERN) .withPattern(PatternLayout.SIMPLE_CONVERSION_PATTERN)
.withConfiguration(config) .withConfiguration(config)
.build(); .build();
// @formatter:off // @formatter:off
final FileAppender appender = FileAppender.newBuilder() final FileAppender appender = FileAppender.newBuilder()
.withFileName(LOG_FILE) .withFileName(LOG_FILE)
.withAppend(false) .withAppend(false).setName("File").setIgnoreExceptions(false)
.withName("File")
.withIgnoreExceptions(false)
.withBufferSize(4000) .withBufferSize(4000)
.withBufferedIo(false) .withBufferedIo(false).setLayout(layout)
.withLayout(layout)
.build(); .build();
// @formatter:on // @formatter:on
appender.start(); appender.start();
config.addAppender(appender); config.addAppender(appender);
final AppenderRef ref = AppenderRef.createAppenderRef("File", null, null ); final AppenderRef ref = AppenderRef.createAppenderRef("File", null, null );
final AppenderRef[] refs = new AppenderRef[] {ref}; final AppenderRef[] refs = new AppenderRef[] {ref};
final LoggerConfig loggerConfig = LoggerConfig.createLogger(false, Level .INFO, "org.apache.logging.log4j", final LoggerConfig loggerConfig = LoggerConfig.createLogger(false, Level .INFO, "org.apache.logging.log4j",
"true", refs, null, config, null ); "true", refs, null, config, null );
loggerConfig.addAppender(appender, null, null); loggerConfig.addAppender(appender, null, null);
 End of changes. 2 change blocks. 
6 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)