Class LoggingBootstrapInitializer

  • All Implemented Interfaces:
    org.springframework.web.WebApplicationInitializer

    @Order(1)
    public class LoggingBootstrapInitializer
    extends Object
    implements org.springframework.web.WebApplicationInitializer
    A Spring WebApplicationInitializer which configured and bootstraps the Log4j 2.x and SLF4J logging frameworks.

    This *must* run before any other application code, otherwise the logging frameworks may get initialized with incorrect configuration.

    Since:
    8.0
    • Constructor Detail

      • LoggingBootstrapInitializer

        public LoggingBootstrapInitializer()
    • Method Detail

      • onStartup

        public void onStartup​(javax.servlet.ServletContext servletContext)
                       throws javax.servlet.ServletException
        Specified by:
        onStartup in interface org.springframework.web.WebApplicationInitializer
        Throws:
        javax.servlet.ServletException