Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public void test() throws InterruptedException {
// Programatically modify the Log4j2 Logging configuration to add an appender
LoggerContext ctx = LoggerContext.getContext(false);
Configuration cfg = ctx.getConfiguration();
PatternLayout layout = PatternLayout.newBuilder().withConfiguration(cfg)
.withPattern(PatternLayout.SIMPLE_CONVERSION_PATTERN).build();
PatternLayout layout = PatternLayout.newBuilder().setConfiguration(cfg)
.setPattern(PatternLayout.SIMPLE_CONVERSION_PATTERN).build();
Appender appender = WriterAppender.createAppender(layout, null, writer,
"EscalatingLoggerTestAppender", false, true);
appender.start();
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ under the License.
<version.curator>5.8.0</version.curator>
<version.errorprone>2.41.0</version.errorprone>
<version.hadoop>3.3.6</version.hadoop>
<version.log4j>2.25.4</version.log4j>
<version.log4j>2.26.1</version.log4j>
<version.opentelemetry>1.48.0</version.opentelemetry>
<version.powermock>2.0.9</version.powermock>
<version.slf4j>2.0.17</version.slf4j>
Expand Down