Skip to content

Commit

Permalink
Update Log4j 2 to 2.24.1
Browse files Browse the repository at this point in the history
This also needs a test dependency on log4j-core because since version
2.24.0 if no provider implementation is found a no-op ThreadContextMap
is used, which causes test failures.

However, for normal usage that is probably not relevant since there the
user most likely will have some variant of Log4j provider, most likely
log4j-core as runtime dependency (but possibly also another provider).

Signed-off-by: Marcono1234 <Marcono1234@users.noreply.github.com>
  • Loading branch information
Marcono1234 committed Oct 8, 2024
1 parent ff054ac commit fbaf927
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion log4j2-propagation/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2016-2022 Talsma ICT
Copyright 2016-2024 Talsma ICT
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -47,5 +47,11 @@
<artifactId>log4j-api</artifactId>
<version>${log4j2.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${log4j2.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<spring-security.version>6.3.3</spring-security.version>
<servlet-api.version>4.0.1</servlet-api.version>
<slf4j.version>2.0.16</slf4j.version>
<log4j2.version>2.23.1</log4j2.version>
<log4j2.version>2.24.1</log4j2.version>

<junit.version>5.11.2</junit.version>
<logback.version>1.5.8</logback.version>
Expand Down

0 comments on commit fbaf927

Please sign in to comment.