English 中文(简体)
日志
原标题:log4j hibernate jpa print login debug messages

我使用Tomcat6/J2ee与Hibernate jpa图书馆。 我的数据库连接性质。 URL由于某种原因的数据库链接,正在从prop文档中读取,但不会因为用户名和密码而变得无效。

我想印刷解冻电,在我的标志4j. 之后,从头巾的垃圾中获取消减记录。

log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n

log4j.rootLogger=DEBUG,A1

# c3p0 connection pool details
log4j.logger.com.mchange.v2=INFO    
# hibernate transactions and database activity
log4j.logger.org.hibernate=INFO
# spring + hibernate interaction
log4j.logger.org.springframework=DEBUG
最佳回答
log4j.logger.org.springframework.orm.jpa=DEBUG 
log4j.logger.org.springframework.orm.jpa.JpaTransactionManager=DEBUG 
log4j.logger.org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter=DEBUG 
log4j.logger.org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean=DEBUG 
log4j.logger.org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor=DEBUG 
log4j.logger.org.hibernate=DEBUG log4j.logger.org.hibernate.SQL=DEBUG 
问题回答

暂无回答




相关问题
Tomcat´s server.xml dynamic configuration

My web application uses the same database configuration as the application XYZ. I have a resource declaration for a context in server.xml, so I have a duplicated configuration (once for web ...

session transfer issue from Tomcat to ASP.Net

I am using Tomcat to host JSP and using IIS 7.0 to host aspx (C# + .Net 3.5 + VSTS 2008), and I have some session transfer issue from JSP page to ASPX page. JSP page is in one domain and all other ...

JSP exception - class not found (tomcat)

I m setting up an existing application on a new Tomcat 5.5 server connecting to a Postgres database (running on Debian Lenny). When I access it I get a series of stack traces with the following root ...

热门标签