Package org.apache.logging.log4j.web
The classes in this package are responsible for properly initializing and deinitializing Log4j in a Java EE web
application.
- See Also:
- Using Log4j 2 in Web Applications
-
Interface Summary Interface Description Log4jWebLifeCycle Specifies an interface for initializing and deinitializing Log4j in a Java EE web application.Log4jWebSupport Specifies an interface for setting and clearing a thread-boundLoggerContext
in a Java EE web application. -
Class Summary Class Description Log4jServletContainerInitializer In a Servlet 3.0 or newer environment, this initializer is responsible for starting up Log4j logging before anything else happens in application initialization.Log4jServletContextListener In environments older than Servlet 3.0, this initializer is responsible for starting up Log4j logging before anything else happens in application initialization.Log4jServletFilter 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.Log4jShutdownOnContextDestroyedListener Log4jWebInitializerImpl This class initializes and deinitializes Log4j no matter how the initialization occurs.ServletRequestThreadContext WebLoggerContextUtils Convenience methods for retrieving theLoggerContext
associated with a particular ServletContext.WebLookup -
Exception Summary Exception Description Log4jServletContainerInitializer In a Servlet 3.0 or newer environment, this initializer is responsible for starting up Log4j logging before anything else happens in application initialization.Log4jServletContextListener In environments older than Servlet 3.0, this initializer is responsible for starting up Log4j logging before anything else happens in application initialization.Log4jServletFilter 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.Log4jShutdownOnContextDestroyedListener Log4jWebInitializerImpl This class initializes and deinitializes Log4j no matter how the initialization occurs.Log4jWebLifeCycle Specifies an interface for initializing and deinitializing Log4j in a Java EE web application.Log4jWebSupport Specifies an interface for setting and clearing a thread-boundLoggerContext
in a Java EE web application.ServletRequestThreadContext WebLoggerContextUtils Convenience methods for retrieving theorg.apache.logging.log4j.core.LoggerContext
associated with a particular ServletContext.WebLookup