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 cc641d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions log4j2-propagation/pom.xml
Original file line number Diff line number Diff line change
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 cc641d0

Please sign in to comment.