Registry / logging / log4j-1-2-api

log4j-1-2-api

JSON →
library2.26.0javamavenunverified

Provides compatibility bridge for applications using the legacy Log4j 1.x API to route logging calls to Log4j 2.

<dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-1.2-api</artifactId> <version>2.26.0</version> </dependency>
INSTALL
IMPORT
SIG · LOG4J-1-2-API
L
log4j-1-2-api
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.

Logger
org.apache.log4j.Logger

Minimal usage of Log4j 1.x Compatibility API to log a message.

import org.apache.log4j.Logger; public class Example { private static final Logger logger = Logger.getLogger(Example.class); public static void main(String[] args) { logger.info("Hello, Log4j 1.x API!"); } }
Debug
Known issues
gotchaThis bridge is intended for migration; new projects should use Log4j 2 API directly.
fix
Use org.apache.logging.log4j:log4j-api and org.apache.logging.log4j:log4j-core instead.
affects: all
Upgrade
Version history
2.26.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
log4j-1-2-api — mvn dependency:get log4j-1-2-api · libregistry