Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 670 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 670 Bytes

spring-mvc-logger

  1. Add to pom.xml
   <dependency>
        <groupId>com.github.isrsal</groupId>
        <artifactId>spring-mvc-logger</artifactId>
        <version>0.2</version>
    </dependency>
  1. Add to web.xml
    <filter>
        <filter-name>loggingFilter</filter-name>
        <filter-class>com.github.isrsal.logging.LoggingFilter</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>loggingFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
  1. Add to log4j.xml
   <logger name="com.github.isrsal.logging.LoggingFilter">
      <level value="DEBUG"/>
   </logger>