How to configure Log4j in Tomcat
来源:互联网 发布:ubuntu安装gfirefly 编辑:程序博客网 时间:2024/04/30 19:45
Steps below explain how to configure Tomcat to use log4j system.
1. Download extra components including extras/tomcat-juli.jar, extras/tomcat-juli-adapters.jar in Apchee tomcat home page.
2. Replace $CATALINA_HOME/bin/tomcat-juli.jar with extras/tomcat-juli.jar just downloaded.
3. Place estras/tomcat-juli-adapters.jar in $CATALINA_HOME/lib.
4. Delete $CATALINA_HOME/conf/logging.properties file.
5. Writing log4j.properties file and put on $CATALINA_HOME/lib. This properties file is responsible for Tomcat’s internal logging. Please refer to the attachment.
6. Download Log4J (v1.2 or later) and place the log4j jar in $CATALINA_HOME/lib.
7. Web applications should certainly use their own log4j configuration. Please place your log4j.properties file in your web application’s WEB-INF/classes, and log.xx.jar into WEB-INF/lib.
Henceforth, you do not write any source code regarding the log4j, but the log4j.properties. Tomcat will load all the things with the Applications starting up.
- How to configure Log4j in Tomcat
- How to configure Log4j in Tomcat
- how to configure TOMCAT ECLIPSE MYSQL JDK
- How to configure JMX on Apache Tomcat
- How to configure default browser in registry
- how to enable debug in configure?
- How to configure Tomcat to support remote debugging
- How to test a C++ library usability in configure.in?
- How to: Configure Network Tracing in .NET application
- How to setup/configure multiple stores in Magento?
- How to configure SmartPhone for debugging in VS 2008
- How TO Configure ActiveReport In IIS6 And IIS7
- how to configure and use activemq in camel
- How to configure a simple WebDAV in apache
- How to configure the JSF implementation in WAS
- How to properly configure NLB cluster in Windows 2008
- How to Install And Configure Apache In Ubuntu
- how to write a configure script in linux
- .net 面试题整理
- Overview of protection mechanisms of TMG
- js 加载问题
- 请问:VC++中,定时器和线程的异同?~~~谢高手指点
- 网络划分的方法
- How to configure Log4j in Tomcat
- 优化tomcat6配置
- 早起的十个好处,以及如何做到早起
- 关于android的ListView的getCheckItemIds无法准确得到被选checkbox的bug
- ACM学习步骤
- SOA在维基百科的解释
- Servlet学习
- Java/JSP中文乱码问题解决心得
- Java/JSP中文乱码问题解决心得