logging-log4j2 icon indicating copy to clipboard operation
logging-log4j2 copied to clipboard

Apache Log4j 2 is a versatile, feature-rich, efficient logging API and backend for Java.

Results 483 logging-log4j2 issues
Sort by recently updated
recently updated
newest added

## Description The test `AsyncThreadContextDefaultTest` is unreliable: ``` ... [INFO] Results: [INFO] [ERROR] Failures: [ERROR] AsyncThreadContextDefaultTest.testAsyncLogWritesToLog:38->AbstractAsyncThreadContextTestBase.testAsyncLogWritesToLog:188->AbstractAsyncThreadContextTestBase.checkResult:221 [Log file 'AsyncLoggerTest.log'] expected: "INFO c.f.Bar mapvalue [stackvalue] {KEY=mapvalue, configProp=configValue, configProp2=configValue2} WEBAPP DefaultThreadContextMap AsyncLoggerContext...

tests

## Description The test `RollingAppenderDirectCronTest.testAppender(LoggerContext, RollingFileAppender)` is unreliable: ``` [INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.52 s -- in org.apache.logging.log4j.core.appender.TlsSyslogAppenderTest 17:14:12.956 main ERROR The...

tests

This removes the BND configuration in `log4j-1.2-api/bnd.bnd` and moves it to the POM file. The resulting JPMS module has the same requirements as version `2.24.1`. ``` requires java.base requires java.desktop...

To prepare for the migration between Log4j Core 2 and Log4j Core 3 this PR removes the runtime dependency on `log4j-core` from both `log4j-slf4j-impl` and `log4j-slf4j2-impl`. This explicitly reverts the...

slf4j

We need to port #3053 to the `main` branch.

graalvm

Fixes #2592 Fixes FileRenameAction when the source file doesn't exist. ## Checklist * Base your changes on `2.x` branch if you are targeting Log4j 2; use `main` otherwise * `./mvnw...

## Description SyslogAppenderCustomLayoutTest is unreliable ``` [ERROR] Failures: [ERROR] SyslogAppenderCustomLayoutTest>SyslogAppenderTest.testTCPAppender:56->SyslogAppenderTestBase.sendAndCheckLegacyBsdMessage:74->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:112 The number of received messages should be equal with the number of sent messages expected: but was: [ERROR] SyslogAppenderCustomLayoutTest>SyslogAppenderTest.testUDPAppender:79->SyslogAppenderTestBase.sendAndCheckLegacyBsdMessage:74->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:112 The...

tests

The current `log4j-jul` artifact contains four different features: 1. A custom [`j.u.l.LogManager`](https://docs.oracle.com/en/java/javase/21/docs/api/java.logging/java/util/logging/LogManager.html) implementation. This implementation is actually rather generic and can be adapted to any kind of logging backend by...

The `log4j-slf4j-impl`, `log4j-slf4j2-impl`, `log4j-to-jul` and `log4j-to-slf4j` bridges are practically identical to their 2.x counterparts. Unlike `log4j-jpl` (which requires Java 11) and `log4j-jul` (which requires breaking changes to remove optional `log4j-core`...

slf4j
JUL

As reported in [this SO question](https://logging.apache.org/log4j/2.x/components.html#log4j-json-template-layout) if the `HTTP` appender does not have a configured layout, it fails with an NPE. The correct behavior should be: - issue a status...

bug
appenders