Package org.apache.logging.log4j.web
@Export
@Version("2.20.1")
package org.apache.logging.log4j.web
The classes in this package are responsible for properly initializing and deinitializing Log4j in a Jakarta EE web
application.
- See Also:
-
ClassDescriptionIn a Servlet 3.0 or newer environment, this initializer is responsible for starting up Log4j logging before anything else happens in application initialization.In environments older than Servlet 3.0, this initializer is responsible for starting up Log4j logging before anything else happens in application initialization.This is responsible for the following: Clearing the logger context when the application has finished starting up. Setting the logger context before processing a request and clearing it after processing a request. Setting the logger context when the application is starting to shut down. This filter is a once-per-request filter.Specifies an interface for setting and clearing a thread-bound
LoggerContext
in a Java EE web application.Convenience methods for retrieving theLoggerContext
associated with a particular ServletContext.