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
34 log4j.logger.eu.etaxonomy.cdm.model.common.init = warn
35 #log4j.logger.eu.etaxonomy.cdm.model.taxon.TaxonNodeByNameComparator=trace
37 log4j.logger.eu.etaxonomy.cdm.test.function = info
38 log4j.logger.eu.etaxonomy.cdm.test.integration = info
39 log4j.logger.eu.etaxonomy.cdm.api.application = warn
40 log4j.logger.eu.etaxonomy.cdm.api.service = info
41 log4j.logger.eu.etaxonomy.cdm.api.service.description = info
42 #log4j.logger.eu.etaxonomy.cdm.database.VocabularyStoreImpl = info
44 log4j.logger.eu.etaxonomy.cdm.database.init = info
45 log4j.logger.eu.etaxonomy.cdm.database = info
46 log4j.logger.eu.etaxonomy.cdm.persistence.dao.hibernate.common = warn
52 ### *** SPRING ************ ###
53 log4j.logger.org.springframework.transaction = warn
54 log4j.logger.org.hibernate.engine.LoadContexts = warn
55 log4j.logger.org.springframework.orm.hibernate3.SessionFactoryUtils = warn
56 log4j.logger.org.springframework.orm.hibernate3 = warn
57 log4j.logger.org.springframework.FileSystemXmlApplicationContext = warn;
58 log4j.logger.org.springframework.core.io.support = warn
59 #log4j.logger.org.springframework.context.support = trace
62 ### ***HIBERNATE ************ ###
64 log4j.logger.org.hibernate=warn
66 ### No warnings as thrown by SQLServer
67 ###log4j.logger.org.hibernate.cfg = warn
69 ### No warnings as thrown by SQLServer
70 log4j.logger.org.hibernate.util.JDBCExceptionReporter = error
72 ### log HQL query parser activity
73 #log4j.logger.org.hibernate.hql.ast.AST=debug
76 #log4j.logger.org.hibernate.SQL=trace
78 ### log JDBC bind parameters ###
79 #log4j.logger.org.hibernate.type=trace
81 ### log schema export/update ###
82 log4j.logger.org.hibernate.tool.hbm2ddl=warn
84 ### log HQL parse trees
85 log4j.logger.org.hibernate.hql=warn
86 log4j.logger.org.hibernate.hql.ast=warn
88 ### log cache activity ###
89 #log4j.logger.org.hibernate.cache=debug
91 ### log JDBC resource acquisition
92 log4j.logger.org.hibernate.jdbc=info
94 ### avoid warnings about inappropriate Annotations ###
95 # TODO remove the below two line after updating to hibernate 4.x
96 #log4j.logger.org.hibernate.search.engine.DocumentBuilderContainedEntity=error
97 #log4j.logger.org.hibernate.search.impl.SearchFactoryImpl=error
99 ### enable the following line if you want to track down connection ###
100 ### leakages when using DriverManagerConnectionProvider ###
101 #log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace
103 ### log transaction management & binding
104 #log4j.logger.eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest=debug
105 #log4j.logger.org.hibernate.transaction=debug
106 #log4j.logger.org.hibernate.engine.transaction=debug
107 #log4j.logger.org.springframework.transaction.support.TransactionSynchronizationManager=trace
108 #log4j.logger.org.springframework.orm.hibernate3.HibernateTransactionManager=trace
109 #log4j.logger.org.springframework.orm.hibernate4.HibernateTransactionManager=trace
110 #log4j.logger.org.springframework.orm.hibernate4=trace
111 #log4j.logger.org.springframework.orm.hibernate3=trace
113 ### enable logging if you want to track what is happening in the database ###
114 #log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.CdmPostCrudObservableListener=trace
116 ### log hibernate id generation
117 #log4j.logger.org.hibernate.id = INFO
118 #log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.TableGenerator=debug
120 ### log dbunit dataset loading ####
121 #log4j.logger.org.dbunit.operation=debug
122 #log4j.logger.org.dbunit.operation.DeleteAllOperation=debug
124 #### log spring security #####
125 #log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.permission=debug
126 log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.permission.CdmAuthority=warn
127 #log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.CdmSecurityHibernateInterceptor=debug
128 #log4j.logger.org.springframework.security.access.intercept=debug
129 #log4j.logger.org.springframework.security.access.vote=debug
130 #log4j.logger.eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest=debug
132 #### Lucene Fulltext index and cdmlib search facility####
133 #log4j.logger.org.apache.lucene=debug
134 #log4j.logger.org.apache.lucene.index.IndexWriter=debug
135 #log4j.logger.org.apache.lucene.store=debug
136 log4j.logger.eu.etaxonomy.cdm.search.LuceneSearch=warn
138 ### *** Profiling Logger ************ ###
140 #log4j.logger.org.springframework.aop.interceptor.PerformanceMonitorInterceptor=TRACE, profiling
142 #log4j.appender.profiling=org.apache.log4j.RollingFileAppender
143 #log4j.appender.profiling.File=profiling.log
144 #log4j.appender.profiling.MaxFileSize=1024KB
145 #log4j.appender.profiling.MaxBackupIndex=1
146 #log4j.appender.profiling.layout=org.apache.log4j.PatternLayout
147 #log4j.appender.profiling.layout.conversionPattern=%d,%p,%m%n
149 #log4j.logger.org.springframework.context.annotation.ClassPathBeanDefinitionScanner = trace