public void init() throws ServletException {
String prefix = getServletContext().getRealPath("/");
String file = getInitParameter("log4j");if (file != null) {
PropertyConfigurator.configure("E:/JBProject/work/weather/defaultroot/WEB-INF/log4j.properties");
}
}
:log4j不是象你这样的用法,具体要看看apache上的用法介绍,看看你的配法对不对。。
String prefix = getServletContext().getRealPath("/");
String file = getInitParameter("log4j");if (file != null) {
PropertyConfigurator.configure("E:/JBProject/work/weather/defaultroot/WEB-INF/log4j.properties");
}
}
:log4j不是象你这样的用法,具体要看看apache上的用法介绍,看看你的配法对不对。。
解决方案 »
- Error configuring application listener of class org.springframework.web.context.
- 安装Eclipse问题
- 大侠,这个我很急啊 又找不到人帮忙 帮我看看啊!!!只要在源文件里改一些就可以了啊
- 请教'class' or 'interface' expected
- 1个很简单的问题 奉献20分
- pestore_1.3.1_02_bea.zip(petstore.domain.jar)在哪有下载?
- Xerces解析xml文件时出现错误,大家帮我看一看~
- 请问~!
- java下用过水晶报表的帮个帮。
- jms 持久 发布/订阅 发布者和订阅者不能同时进行,提示client id "ss" is in use
- 急呀!web service和web logic 问题!!!在线等待……
- [续]用Eclipse+easyStruts的邦我看看!
看看LOG4J包里的examples吧:)
在log4j.properties文件里!