public class Log4jConfigurationLoaderListener extends Object implements javax.servlet.ServletContextListener
ServletContextListener
to initialize the Log4jConfigurationLoader
.
Example Configuration could look like the following:
web.xml -------------------------------------- <context-param> <param-name>settings4jLog4jConfigurationKey</param-name> <param-value>com/myCompany/myApp/log4j.configuration</param-value> </context-param> <listener> <display-name></display-name> <listener-class>org.settings4j.helper.web.Log4jConfigurationLoaderListener</listener-class> </listener> --------------------------------------You can combine this config with he
DefaultPropertiesLoaderListener
.Constructor and Description |
---|
Log4jConfigurationLoaderListener() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event) |
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2008–2014. All rights reserved.