1 ### ************ APPENDER ***********************************###
3 ### direct log messages to stdout ###
4 log4j.appender.stdout=org.apache.log4j.ConsoleAppender
5 log4j.appender.stdout.Target=System.out
6 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
7 log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
9 ### direct messages to file hibernate.log ###
10 log4j.appender.file=org.apache.log4j.FileAppender
11 log4j.appender.file.File=./target/hibernate.log
12 log4j.appender.file.layout=org.apache.log4j.PatternLayout
13 log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
16 ### ************* LOG LEVELS *********************************###
18 ### set log levels - for more verbose logging change 'info' to 'debug' ###
20 log4j.rootLogger=warn, stdout
24 log4j.logger.eu.etaxonomy.cdm = warn
25 log4j.logger.eu.etaxonomy.cdm.database.init = warn
26 log4j.logger.eu.etaxonomy.cdm.test.function = warn
29 ### *** SPRING ************ ###
30 log4j.logger.org.springframework.transaction = warn
31 log4j.logger.org.springframework.orm.hibernate5 = info
32 log4j.logger.org.springframework.FileSystemXmlApplicationContext = warn
33 log4j.logger.org.springframework.core.io.support = info
37 ### No warnings as thrown by SQLServer
38 log4j.logger.org.hibernate.cfg = warn
40 ### No warnings as thrown by SQLServer
41 log4j.logger.org.hibernate.util.JDBCExceptionReporter = error
43 ### log HQL query parser activity
44 #log4j.logger.org.hibernate.hql.ast.AST=debug
47 log4j.logger.org.hibernate.SQL=warn
49 ### log JDBC bind parameters ###
50 log4j.logger.org.hibernate.type=warn
52 ### log schema export/update ###
53 log4j.logger.org.hibernate.tool.hbm2ddl=warn
55 ### log HQL parse trees
56 #log4j.logger.org.hibernate.hql=debug
58 ### log cache activity ###
59 #log4j.logger.org.hibernate.cache=debug
61 ### log transaction activity
62 #log4j.logger.org.hibernate.transaction=debug
64 ### log JDBC resource acquisition
65 log4j.logger.org.hibernate.jdbc=info
67 ### enable the following line if you want to track down connection ###
68 ### leakages when using DriverManagerConnectionProvider ###
69 #log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace
71 ### *** Profiling Logger ************ ###
73 #log4j.logger.org.springframework.aop.interceptor.PerformanceMonitorInterceptor=TRACE, profiling
75 #log4j.appender.profiling=org.apache.log4j.RollingFileAppender
76 #log4j.appender.profiling.File=profiling.log
77 #log4j.appender.profiling.MaxFileSize=1024KB
78 #log4j.appender.profiling.MaxBackupIndex=1
79 #log4j.appender.profiling.layout=org.apache.log4j.PatternLayout
80 #log4j.appender.profiling.layout.conversionPattern=%d,%p,%m%n