"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "log4j-core/src/test/java/org/apache/logging/log4j/core/appender/SyslogAppenderTest.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).

SyslogAppenderTest.java  (apache-log4j-2.11.1-src):SyslogAppenderTest.java  (apache-log4j-2.11.2-src)
skipping to change at line 119 skipping to change at line 119
initRootLogger(appender); initRootLogger(appender);
} }
protected SyslogAppender createAppender(final String protocol, final String format) { protected SyslogAppender createAppender(final String protocol, final String format) {
return newSyslogAppenderBuilder(protocol, format, includeNewLine).build( ); return newSyslogAppenderBuilder(protocol, format, includeNewLine).build( );
} }
protected Builder newSyslogAppenderBuilder(final String protocol, final Stri ng format, final boolean newLine) { protected Builder newSyslogAppenderBuilder(final String protocol, final Stri ng format, final boolean newLine) {
// @formatter:off // @formatter:off
return SyslogAppender.newSyslogAppenderBuilder() return SyslogAppender.newSyslogAppenderBuilder()
.withPort(PORTNUM) .withPort(PORTNUM)
.withProtocol(EnglishEnums.valueOf(Protocol.class, protocol)) .withProtocol(EnglishEnums.valueOf(Protocol.class, protocol))
.withReconnectDelayMillis(-1) .withReconnectDelayMillis(-1).setName("TestApp").setIgnoreExceptions(fal
.withName("TestApp") se)
.withIgnoreExceptions(false)
.setId("Audit") .setId("Audit")
.setEnterpriseNumber(18060) .setEnterpriseNumber(18060)
.setMdcId("RequestContext") .setMdcId("RequestContext")
.setNewLine(newLine) .setNewLine(newLine)
.setAppName("TestApp") .setAppName("TestApp")
.setMsgId("Test") .setMsgId("Test")
.setFormat(format); .setFormat(format);
// @formatter:on // @formatter:on
} }
} }
 End of changes. 1 change blocks. 
5 lines changed or deleted 4 lines changed or added

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