3 # If you are having problems with logging you may debug Log4J initialization,
4 # start the application with a system property log4j.configDebug set to "true".
7 # java -Dlog4j.configDebug=true
9 ### ************ APPENDER ***********************************###
11 ### direct log messages to stdout ###
12 log4j.appender.stdout=org.apache.log4j.ConsoleAppender
13 log4j.appender.stdout.Target=System.out
14 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
15 log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
17 ### direct messages to file hibernate.log ###
18 log4j.appender.file=org.apache.log4j.FileAppender
19 log4j.appender.file.File=./target/hibernate.log
20 log4j.appender.file.layout=org.apache.log4j.PatternLayout
21 log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
24 ### ************* LOG LEVELS *********************************###
26 ### set log levels - for more verbose logging change 'info' to 'debug' ###
28 log4j.rootLogger=warn, stdout, file
32 log4j.logger.eu.etaxonomy.cdm = info
33 log4j.logger.eu.etaxonomy.cdm.database.init = warn
35 log4j.logger.eu.etaxonomy.cdm.model.common.init = warn
36 #log4j.logger.eu.etaxonomy.cdm.model.taxon.TaxonNodeByNameComparator=trace
38 log4j.logger.eu.etaxonomy.cdm.test.function = info
39 log4j.logger.eu.etaxonomy.cdm.test.integration = info
40 log4j.logger.eu.etaxonomy.cdm.api.application = warn
41 log4j.logger.eu.etaxonomy.cdm.api.service = info
42 #log4j.logger.eu.etaxonomy.cdm.database.VocabularyStoreImpl = warn
44 log4j.logger.eu.etaxonomy.cdm.database = info
45 log4j.logger.eu.etaxonomy.cdm.persistence.dao.hibernate.common = warn
47 ### *** SPRING ************ ###
48 log4j.logger.org.springframework.transaction = warn
49 log4j.logger.org.hibernate.engine.LoadContexts = warn
50 log4j.logger.org.springframework.orm.hibernate3.SessionFactoryUtils = warn
51 log4j.logger.org.springframework.orm.hibernate3 = warn
52 log4j.logger.org.springframework.FileSystemXmlApplicationContext = warn;
53 log4j.logger.org.springframework.core.io.support = warn
56 ### ***HIBERNATE ************ ###
58 log4j.logger.org.hibernate=warn
60 ### No warnings as thrown by SQLServer
61 ###log4j.logger.org.hibernate.cfg = warn
63 ### No warnings as thrown by SQLServer
64 log4j.logger.org.hibernate.util.JDBCExceptionReporter = error
66 ### log HQL query parser activity
67 #log4j.logger.org.hibernate.hql.ast.AST=debug
70 #log4j.logger.org.hibernate.SQL=trace
72 ### log JDBC bind parameters ###
73 #log4j.logger.org.hibernate.type=trace
75 ### log schema export/update ###
76 log4j.logger.org.hibernate.tool.hbm2ddl=warn
78 ### log HQL parse trees
79 log4j.logger.org.hibernate.hql=warn
80 log4j.logger.org.hibernate.hql.ast=warn
82 ### log cache activity ###
83 #log4j.logger.org.hibernate.cache=debug
85 ### log transaction activity
86 #log4j.logger.org.hibernate.transaction=debug
88 ### log JDBC resource acquisition
89 log4j.logger.org.hibernate.jdbc=info
91 ### avoid warnings about inappropriate Annotations ###
92 # TODO remove the below two line after updating to hibernate 4.x
93 log4j.logger.org.hibernate.search.engine.DocumentBuilderContainedEntity=error
94 log4j.logger.org.hibernate.search.impl.SearchFactoryImpl=error
96 ### enable the following line if you want to track down connection ###
97 ### leakages when using DriverManagerConnectionProvider ###
98 #log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace
100 ### log transaction management & binding
101 log4j.logger.org.hibernate.transaction=debug
102 #log4j.logger.org.springframework.transaction.support.TransactionSynchronizationManager=trace
103 #log4j.logger.org.springframework.orm.hibernate3.HibernateTransactionManager=trace
104 #log4j.logger.org.springframework.orm.hibernate3=trace
106 ### enable logging if you want to track what is happening in the database ###
107 #log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.CdmPostCrudObservableListener=trace
109 ### log hibernate id generation
110 #log4j.logger.org.hibernate.id = INFO
111 #log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.TableGenerator=debug
113 ### log dbunit dataset loading ####
114 #log4j.logger.org.dbunit.operation=debug
115 #log4j.logger.org.dbunit.operation.DeleteAllOperation=debug
118 ### *** Profiling Logger ************ ###
120 #log4j.logger.org.springframework.aop.interceptor.PerformanceMonitorInterceptor=TRACE, profiling
122 #log4j.appender.profiling=org.apache.log4j.RollingFileAppender
123 #log4j.appender.profiling.File=profiling.log
124 #log4j.appender.profiling.MaxFileSize=1024KB
125 #log4j.appender.profiling.MaxBackupIndex=1
126 #log4j.appender.profiling.layout=org.apache.log4j.PatternLayout
127 #log4j.appender.profiling.layout.conversionPattern=%d,%p,%m%n
129 #log4j.logger.org.springframework.context.annotation.ClassPathBeanDefinitionScanner = trace