Introduction - If you have any usage issues, please Google them yourself
Log4J write their own small examples, including in the jsp pages and java class file to use Log4J code the use of properties files and configuration files using the XML code
Packet : 23825779hellolog4j.rar filelist
helloLog4j\Log4JApp.java
helloLog4j\properties.lcf
helloLog4j\采用XML配置文件的Log4j例程\MyApp3.java
helloLog4j\采用XML配置文件的Log4j例程\Log.java
helloLog4j\采用XML配置文件的Log4j例程\log4j.xml
helloLog4j\采用XML配置文件的Log4j例程
helloLog4j\helloapp\hello.jsp
helloLog4j\helloapp\index.htm
helloLog4j\helloapp\login.jsp
helloLog4j\helloapp\WEB-INF\log4j.properties
helloLog4j\helloapp\WEB-INF\web.xml
helloLog4j\helloapp\WEB-INF\lib\log4j-1.2.8.jar
helloLog4j\helloapp\WEB-INF\lib
helloLog4j\helloapp\WEB-INF\classes\mypack\DispatcherServlet.class
helloLog4j\helloapp\WEB-INF\classes\mypack\Log4JServlet.class
helloLog4j\helloapp\WEB-INF\classes\mypack
helloLog4j\helloapp\WEB-INF\classes
helloLog4j\helloapp\WEB-INF
helloLog4j\helloapp\src\mypack\DispatcherServlet.java
helloLog4j\helloapp\src\mypack\Log4JServlet.java
helloLog4j\helloapp\src\mypack
helloLog4j\helloapp\src
helloLog4j\helloapp
helloLog4j