013_搭建Log4J日志环境 +

013_搭建Log4J日志环境

搭建日志环境并配置显示DDL语句

一、需要引入的jar包

需要引入的jar包

slf4j-api-1.5.8.jar

log4j-1.2.15.jar

slf4j-log4j12-1.5.8.jar  适配器

二、设置配置文件(直接copy)

E:\zhuhw\hibernate\jar\hibernate-distribution-3.3.2.GA\project\etc\log4j.properties

放在  /hibernate_0100_HelloWorld/src/log4j.properties目录下。

日志文件正常展示了。

猜你喜欢

转载自yuzhouxiner.iteye.com/blog/2268040