Registry / logging / log4j-web

log4j-web

JSON →
library2.26.0javamavenunverified

Provides Log4j 2 support for web servlet containers, including automatic configuration and cleanup.

<dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-web</artifactId> <version>2.26.0</version> </dependency>
INSTALL
IMPORT
SIG · LOG4J-WEB
L
log4j-web
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.

Log4jServletContextListener
org.apache.logging.log4j.web.Log4jServletContextListener

Registers a Log4j servlet context listener for web application logging.

import org.apache.logging.log4j.web.Log4jServletContextListener; import javax.servlet.annotation.WebListener; @WebListener public class MyLog4jListener extends Log4jServletContextListener { }
Debug
Known issues
breakingRequires Log4j 2 core library on the classpath; missing it causes startup failures.
fix
Add org.apache.logging.log4j:log4j-core as a dependency.
affects: >=2.0.0
Upgrade
Version history
2.26.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
20
Resources