下载hibernate,解压缩后,把etc中的log4j.properties这个文件拷贝到你源文件的跟目录下就可以了。
解决方案 »
- 比较器排序的问题
- 帮忙写个SQL语句(在线等)
- 做一个上报的接口,采用Webservice合适吗?
- 各位高手大哥.我是新注册的.没什么分分..555.请各位大哥帮忙看一下吧
- Tomcat的反射调用,求解答
- 请问下如何在静态方法中访问内部类?
- 为什么有的方法后面要跟上throws,直接在方法里面用try catch就不行吗?最好给个例子说明,给100分,多谢了
- 请问:opensource项目例如:JBOSS的设计文档,怎么得到?
- 一个初级的问题
- struts2 利用json返回数据,前台一直得不到后台的数据
- tomcat报错The server encountered an internal error (No Context configured to process this request) that prevented it from fulfil
- 菜鸟struts问题,关于errors输出
# For all other servers: Comment out the Log4J listener in web.xml too.
log4j.rootLogger=INFO, stdout, logfile
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n
log4j.appender.logfile=org.apache.log4j.RollingFileAppender
log4j.appender.logfile.File=springapp.log
log4j.appender.logfile.MaxFileSize=512KB
# Keep three backup files.
log4j.appender.logfile.MaxBackupIndex=3
# Pattern to output: date priority [category] - message
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n程序中
protected final Log logger = LogFactory.getLog(getClass());确定要引入log4j,commom-logger,lib中也要有!