Registry / logging / log4j-iostreams

log4j-iostreams

JSON →
library2.26.0javamavenunverified

Provides stream-to-log event converters for Apache Log4j, allowing redirection of System.out and System.err to logging.

<dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-iostreams</artifactId> <version>2.26.0</version> </dependency>
INSTALL
IMPORT
SIG · LOG4J-IOSTREAMS
L
log4j-iostreams
loggingjavav2.26.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

IoBuilder
org.apache.logging.log4j.io.IoBuilder

Create a PrintStream that logs output via Log4j.

import org.apache.logging.log4j.io.IoBuilder; IoBuilder.forLogger().buildPrintStream();
Debug
Known issues
gotchaMay cause infinite loops if not configured correctly (e.g., logging within logging).
fix
Ensure the logger used does not write to the same stream being redirected.
affects: all
Upgrade
Version history
2.26.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
16
Bingbot
3
OpenAI (training)
1
Resources
log4j-iostreams — mvn dependency:get log4j-iostreams · libregistry