Apache logging services logo Apache log4j logo

Web Servlet Containers

The Web module provides support for automatically enabling Log4j in Servlet containers.

See the user manual page on Web Applications and JSPs for details on using Log4j 2 in Web Applications.

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId></groupId>
        <artifactId></artifactId>
        <version></version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <dependencies>
    <dependency>
      <groupId></groupId>
      <artifactId></artifactId>
    </dependency>
  </dependencies>

Requirements

The Web module requires Servlet 2.5 and is dependent on the Log4j 2 API and implementation. For more information, see Runtime Dependencies.