Class LoggerContextFilter

  • All Implemented Interfaces:
    Filter

    public class LoggerContextFilter
    extends java.lang.Object
    implements Filter
    A servlet filter that puts the environment dependent LoggerContext in a ThreadLocal variable, removing it after the request is processed.

    To use it, add the following lines to a web.xml file LoggerContextFilter ch.qos.logback.classic.selector.servlet.LoggerContextFilter LoggerContextFilter /*