Joined: Wed Mar 16, 2005 11:55 pm Posts: 4
|
Hibernate version:3.0 [b] [b]server:websphere 5.1[b] [b] in Mapping documents:[b] <property name="show_sql">true</property>
i put log4j.jar and log4j.properties in classpath!also i put these file in web-inf dir.
this is my log4j.properties: ### direct log messages to stdout ### 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=d:\hibernate.log #log4j.appender.file.layout=org.apache.log4j.PatternLayout #log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
### set log levels - for more verbose logging change 'info' to 'debug' ###
log4j.rootLogger=warn, stdout
#log4j.logger.org.hibernate=info log4j.logger.org.hibernate=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 but can't find file "hibernate.log" and log text in systemout.log
|
|