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 = debug
41 #log4j.logger.eu.etaxonomy.cdm.database.VocabularyStoreImpl = warn
43 log4j.logger.eu.etaxonomy.cdm.database.init = warn
44 log4j.logger.eu.etaxonomy.cdm.database = info
45 log4j.logger.eu.etaxonomy.cdm.persistence.dao.hibernate.common = warn
51 ### *** SPRING ************ ###
52 log4j.logger.org.springframework.transaction = warn
53 log4j.logger.org.hibernate.engine.LoadContexts = warn
54 log4j.logger.org.springframework.orm.hibernate3.SessionFactoryUtils = warn
55 log4j.logger.org.springframework.orm.hibernate3 = warn
56 log4j.logger.org.springframework.FileSystemXmlApplicationContext = warn;
57 log4j.logger.org.springframework.core.io.support = warn
58 #log4j.logger.org.springframework.context.support = trace
61 ### ***HIBERNATE ************ ###
63 log4j.logger.org.hibernate=warn
65 ### No warnings as thrown by SQLServer
66 ###log4j.logger.org.hibernate.cfg = warn
68 ### No warnings as thrown by SQLServer
69 log4j.logger.org.hibernate.util.JDBCExceptionReporter = error
71 ### log HQL query parser activity
72 #log4j.logger.org.hibernate.hql.ast.AST=debug
75 #log4j.logger.org.hibernate.SQL=trace
77 ### log JDBC bind parameters ###
78 #log4j.logger.org.hibernate.type=trace
80 ### log schema export/update ###
81 log4j.logger.org.hibernate.tool.hbm2ddl=warn
83 ### log HQL parse trees
84 log4j.logger.org.hibernate.hql=warn
85 log4j.logger.org.hibernate.hql.ast=warn
87 ### log cache activity ###
88 #log4j.logger.org.hibernate.cache=debug
90 ### log transaction activity
91 #log4j.logger.org.hibernate.transaction=debug
93 ### log JDBC resource acquisition
94 log4j.logger.org.hibernate.jdbc=info
96 ### avoid warnings about inappropriate Annotations ###
97 # TODO remove the below two line after updating to hibernate 4.x
98 log4j.logger.org.hibernate.search.engine.DocumentBuilderContainedEntity=error
99 log4j.logger.org.hibernate.search.impl.SearchFactoryImpl=error
101 ### enable the following line if you want to track down connection ###
102 ### leakages when using DriverManagerConnectionProvider ###
103 #log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace
105 ### log transaction management & binding
106 #log4j.logger.org.hibernate.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.hibernate3=trace
111 ### enable logging if you want to track what is happening in the database ###
112 #log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.CdmPostCrudObservableListener=trace
114 ### log hibernate id generation
115 #log4j.logger.org.hibernate.id = INFO
116 #log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.TableGenerator=debug
118 ### log dbunit dataset loading ####
119 #log4j.logger.org.dbunit.operation=debug
120 #log4j.logger.org.dbunit.operation.DeleteAllOperation=debug
122 #### log spring security #####
123 #log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.permission=debug
124 log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.permission.CdmAuthority=warn
125 #log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.CdmSecurityHibernateInterceptor=debug
126 #log4j.logger.org.springframework.security.access.intercept=debug
127 #log4j.logger.org.springframework.security.access.vote=debug
128 #log4j.logger.eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest=debug
130 #### Lucene Fulltext index and cdmlib search facility####
131 #log4j.logger.org.apache.lucene=debug
132 log4j.logger.eu.etaxonomy.cdm.search.LuceneSearch=warn
134 ### *** Profiling Logger ************ ###
136 #log4j.logger.org.springframework.aop.interceptor.PerformanceMonitorInterceptor=TRACE, profiling
138 #log4j.appender.profiling=org.apache.log4j.RollingFileAppender
139 #log4j.appender.profiling.File=profiling.log
140 #log4j.appender.profiling.MaxFileSize=1024KB
141 #log4j.appender.profiling.MaxBackupIndex=1
142 #log4j.appender.profiling.layout=org.apache.log4j.PatternLayout
143 #log4j.appender.profiling.layout.conversionPattern=%d,%p,%m%n
145 #log4j.logger.org.springframework.context.annotation.ClassPathBeanDefinitionScanner = trace