[hibernate-commits] Hibernate SVN: r18441 - entitymanager/branches/v3_4_0_GA_CP/src/test/resources.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Thu Jan 7 14:56:08 EST 2010


Author: stliu
Date: 2010-01-07 14:56:08 -0500 (Thu, 07 Jan 2010)
New Revision: 18441

Modified:
   entitymanager/branches/v3_4_0_GA_CP/src/test/resources/hibernate.properties
   entitymanager/branches/v3_4_0_GA_CP/src/test/resources/log4j.properties
Log:
JBPAPP-3360 enable show_sql property and update log4j.properties to show some more useful log

Modified: entitymanager/branches/v3_4_0_GA_CP/src/test/resources/hibernate.properties
===================================================================
--- entitymanager/branches/v3_4_0_GA_CP/src/test/resources/hibernate.properties	2010-01-07 19:53:40 UTC (rev 18440)
+++ entitymanager/branches/v3_4_0_GA_CP/src/test/resources/hibernate.properties	2010-01-07 19:56:08 UTC (rev 18441)
@@ -28,6 +28,8 @@
 
 hibernate.format_sql true
 
+hibernate.show_sql true
+
 hibernate.max_fetch_depth 1
 
 hibernate.jdbc.batch_versioned_data true

Modified: entitymanager/branches/v3_4_0_GA_CP/src/test/resources/log4j.properties
===================================================================
--- entitymanager/branches/v3_4_0_GA_CP/src/test/resources/log4j.properties	2010-01-07 19:53:40 UTC (rev 18440)
+++ entitymanager/branches/v3_4_0_GA_CP/src/test/resources/log4j.properties	2010-01-07 19:56:08 UTC (rev 18441)
@@ -1,54 +1,34 @@
-### direct log messages to stdout ###
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+
 log4j.appender.stdout=org.apache.log4j.ConsoleAppender
 log4j.appender.stdout.Target=System.out
 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
 log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
 
-### direct messages to file hibernate.log ###
-log4j.appender.file=org.apache.log4j.FileAppender
-log4j.appender.file.File=hibernate.log
-log4j.appender.file.layout=org.apache.log4j.PatternLayout
-log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
 
-### direct messages to socket - chainsaw ###
-log4j.appender.socket=org.apache.log4j.net.SocketAppender
-log4j.appender.socket.remoteHost=localhost
-log4j.appender.socket.port=4560
-log4j.appender.socket.locationInfo=true
+log4j.rootLogger=info, stdout
 
-### set log levels - for more verbose logging change 'info' to 'debug' ###
+log4j.logger.org.hibernate.test=info
+log4j.logger.org.hibernate.tool.hbm2ddl=debug
+log4j.logger.org.hibernate.hql.ast.QueryTranslatorImpl=trace
+log4j.logger.org.hibernate.hql.ast.HqlSqlWalker=trace
+log4j.logger.org.hibernate.hql.ast.SqlGenerator=trace
+log4j.logger.org.hibernate.hql.ast.AST=trace
 
-log4j.rootLogger=warn, stdout
-
-log4j.logger.org.hibernate=debug
-#log4j.logger.org.hibernate=debug
-
 log4j.logger.org.hibernate.ejb=debug
 log4j.logger.org.hibernate.ejb.packaging=debug
 log4j.logger.org.hibernate.reflection=debug
-
-#log4j.logger.org.hibernate.engine.Cascades=debug
-#log4j.logger.org.hibernate.hql=debug
-
-### log just the SQL
-log4j.logger.org.hibernate.SQL=debug
-
-### log JDBC bind parameters ###
-#log4j.logger.org.hibernate.type=info
-log4j.logger.org.hibernate.type=debug
-
-### log schema export/update ###
-log4j.logger.org.hibernate.tool.hbm2ddl=debug
-
-### log HQL parse trees
-#log4j.logger.org.hibernate.hql=debug
-
-### log cache activity ###
-#log4j.logger.org.hibernate.cache=debug
-
-### log JDBC resource acquisition
-#log4j.logger.org.hibernate.jdbc=debug
-
-### enable the following line if you want to track down connection ###
-### leakages when using DriverManagerConnectionProvider ###
-#log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace



More information about the hibernate-commits mailing list