log4j:WARN Please initialize the log4j system properly 问题解决(转)
来源:互联网 发布:夫妻相测试软件 编辑:程序博客网 时间:2024/04/30 20:48
用eslipse做数据库JAR时显示如下提示:
log4j:WARN Please initialize the log4j system properly.
原因是没有对log4j这个jar进行文件配置。
将log4j.properties文件放在src目录下就可以了。
例如log4j.properties文件内容如下:
log4j.rootLogger=debug, stdout, R
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p - %m%n
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=firestorm.log
log4j.appender.R.MaxFileSize=100KB
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
log4j.logger.com.codefutures=DEBUG
如果不行,就放在class所在目录就KO了。
(经过测试,该方法正确)- (转)log4j:WARN Please initialize the log4j system properly 问题解决
- log4j:WARN Please initialize the log4j system properly 问题解决(转)
- log4j:WARN Please initialize the log4j system properly 问题解决
- log4j:WARN Please initialize the log4j system properly 问题解决
- log4j:WARN Please initialize the log4j system properly 问题解决办法
- log4j:WARN Please initialize the log4j system properly 问题解决
- log4j:WARN Please initialize the log4j system properly 问题解决
- 【问题解决】log4j:WARN Please initialize the log4j system properly.
- WARN Please initialize the log4j system properly.
- WARN Please initialize the log4j system properly.
- log4j:WARN Please initialize the log4j system properly
- log4j:WARN Please initialize the log4j system properly
- 关于log4j:WARN Please initialize the log4j system properly. 警告
- log4j:WARN Please initialize the log4j system properly
- log4j:WARN please initialize the log4j system properly
- log4j:WARN Please initialize the log4j system properly.
- log4j:WARN Please initialize the log4j system properly解决办法
- log4j:WARN Please initialize the log4j system properly解决办法
- WCF服务编程设计规范(8):服务托管、自托管代码、客户端代理类、客户端代理管理、客户端异常管理、数据契约、SOAP与REST
- 技术中立只能说说而已
- 知道当前系统日期与一间隔天数 求之前的日期【未完成】
- 《Microsoft Sql server 2008 Internals》读书笔记--第七章Special Storage(4)
- Axis是什么?(转)
- log4j:WARN Please initialize the log4j system properly 问题解决(转)
- init: timeout opening/writing control channel /dev/initctl 解决方案
- 正式发布:一家之主 0.06 Build 2010.05.08 绿色免费
- CE的生成过程
- 深入浅出DirectShow Filter--作者: 陆其明
- 我读STL
- Lucene学习总结之八:Lucene的查询语法,JavaCC及QueryParser(1)
- 关于Fatal NI connect error 12520的错误
- Lucene学习总结之八:Lucene的查询语法,JavaCC及QueryParser(2)