logging-log4j2
logging-log4j2 copied to clipboard
Apache Log4j 2 is a versatile, feature-rich, efficient logging API and backend for Java.
During the 3.x DI system overhaul, one major change made to most of the plugin annotations was migrating the strategy code for interpreting annotations. Previously, it would be specified via...
The `jvmrunargs` lookup was previously documented, but its entry was removed during the website revamp in #2753 because the lookup was not functioning correctly at the time. The lookup was...
I’ve been researching per-request dynamic logging and came across a limitation in Log4j2’s filtering model compared to Logback. In Logback, the TurboFilter feature allows log events to be conditionally filtered...
The current `log4j-core-test` module includes a variety of test fixtures primarily designed to test Log4j Core itself and its internal plugins. These fixtures assume that: * Static loggers (other than...
`InstantPatternLegacyFormatter` uses `InstantPatternDynamicFormatter` to determine the precision of the *legacy* date & time pattern it receives. As reported by @ppkarwasz (see [the review discussion](https://github.com/apache/logging-log4j2/pull/3789#discussion_r2197874778)), this results in incorrect precision (i.e.,...
This PR addresses issue #3667 by adding guard logic to methods in `Category` and `LogManager` that can modify the configuration. These changes ensure that programmatic configuration using the Log4j 1.x...
The two versions of the `UrlConnectionFactory.createConnection` method currently handle URLs differently, leading to inconsistencies: 1. **Protocol Enforcement**: * The four-parameter version enforces the [`log4j2.configurationAllowedProtocols`](https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.configurationAllowedProtocols) for all protocols. * The one-parameter...