类 Log4jConfigListener
- java.lang.Object
- org.springframework.web.util.Log4jConfigListener
- 所有已实现的接口:
EventListener
,ServletContextListener
@Deprecated public class Log4jConfigListener extends Object implements ServletContextListener
已过时。as of Spring 4.2.1, in favor of Apache Log4j 2 (following Apache's EOL declaration for log4j 1.x)Bootstrap listener for custom log4j initialization in a web environment. Delegates toLog4jWebConfigurer
(see its javadoc for configuration details). WARNING: Assumes an expanded WAR file, both for loading the configuration file and for writing the log files. If you want to keep your WAR unexpanded or don't need application-specific log files within the WAR directory, don't use log4j setup within the application (thus, don't use Log4jConfigListener or Log4jConfigServlet). Instead, use a global, VM-wide log4j setup (for example, in JBoss) or JDK 1.4'sjava.util.logging
(which is global too).This listener should be registered before ContextLoaderListener in
web.xml
when using custom log4j initialization.- 从以下版本开始:
- 13.03.2003
- 作者:
- Juergen Hoeller
- 另请参阅:
Log4jWebConfigurer
,ContextLoaderListener
,WebAppRootListener
构造器概要
构造器 构造器 说明 Log4jConfigListener()
已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 void
contextDestroyed(ServletContextEvent event)
已过时。void
contextInitialized(ServletContextEvent event)
已过时。
构造器详细资料
Log4jConfigListener
public Log4jConfigListener()
已过时。
方法详细资料
contextInitialized
public void contextInitialized(ServletContextEvent event)
已过时。- 指定者:
contextInitialized
在接口中ServletContextListener
contextDestroyed
public void contextDestroyed(ServletContextEvent event)
已过时。- 指定者:
contextDestroyed
在接口中ServletContextListener