1
|
#
|
2
|
#
|
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".
|
5
|
# E.g.:
|
6
|
#
|
7
|
# java -Dlog4j.configDebug=true
|
8
|
#
|
9
|
### ************ APPENDER ***********************************###
|
10
|
|
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
|
16
|
|
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
|
22
|
|
23
|
|
24
|
### ************* LOG LEVELS *********************************###
|
25
|
|
26
|
### set log levels - for more verbose logging change 'info' to 'debug' ###
|
27
|
|
28
|
log4j.rootLogger=warn, stdout, file
|
29
|
|
30
|
### *** CDM *** ###
|
31
|
|
32
|
log4j.logger.eu.etaxonomy.cdm = info
|
33
|
#
|
34
|
log4j.logger.eu.etaxonomy.cdm.model.common.init = warn
|
35
|
#log4j.logger.eu.etaxonomy.cdm.model.taxon.TaxonNodeByNameComparator=trace
|
36
|
#
|
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
|
43
|
#
|
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
|
47
|
|
48
|
log4j.logger.eu.etaxonomy.cdm.api.service.description.TransmissionEngineDistribution=info
|
49
|
|
50
|
|
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
|
59
|
|
60
|
|
61
|
### ***HIBERNATE ************ ###
|
62
|
|
63
|
log4j.logger.org.hibernate=warn
|
64
|
|
65
|
### No warnings as thrown by SQLServer
|
66
|
###log4j.logger.org.hibernate.cfg = warn
|
67
|
|
68
|
### No warnings as thrown by SQLServer
|
69
|
log4j.logger.org.hibernate.util.JDBCExceptionReporter = error
|
70
|
|
71
|
### log HQL query parser activity
|
72
|
#log4j.logger.org.hibernate.hql.ast.AST=debug
|
73
|
|
74
|
### log just the SQL
|
75
|
#log4j.logger.org.hibernate.SQL=trace
|
76
|
|
77
|
### log JDBC bind parameters ###
|
78
|
#log4j.logger.org.hibernate.type=trace
|
79
|
|
80
|
### log schema export/update ###
|
81
|
log4j.logger.org.hibernate.tool.hbm2ddl=warn
|
82
|
|
83
|
### log HQL parse trees
|
84
|
log4j.logger.org.hibernate.hql=warn
|
85
|
log4j.logger.org.hibernate.hql.ast=warn
|
86
|
|
87
|
### log cache activity ###
|
88
|
#log4j.logger.org.hibernate.cache=debug
|
89
|
|
90
|
### log JDBC resource acquisition
|
91
|
log4j.logger.org.hibernate.jdbc=info
|
92
|
|
93
|
### avoid warnings about inappropriate Annotations ###
|
94
|
# TODO remove the below two line after updating to hibernate 4.x
|
95
|
#log4j.logger.org.hibernate.search.engine.DocumentBuilderContainedEntity=error
|
96
|
#log4j.logger.org.hibernate.search.impl.SearchFactoryImpl=error
|
97
|
|
98
|
### enable the following line if you want to track down connection ###
|
99
|
### leakages when using DriverManagerConnectionProvider ###
|
100
|
#log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace
|
101
|
|
102
|
### log transaction management & binding
|
103
|
#log4j.logger.eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest=debug
|
104
|
#log4j.logger.org.hibernate.transaction=debug
|
105
|
#log4j.logger.org.hibernate.engine.transaction=debug
|
106
|
#log4j.logger.org.springframework.transaction.support.TransactionSynchronizationManager=trace
|
107
|
#log4j.logger.org.springframework.orm.hibernate3.HibernateTransactionManager=trace
|
108
|
#log4j.logger.org.springframework.orm.hibernate4.HibernateTransactionManager=trace
|
109
|
#log4j.logger.org.springframework.orm.hibernate4=trace
|
110
|
#log4j.logger.org.springframework.orm.hibernate3=trace
|
111
|
|
112
|
### enable logging if you want to track what is happening in the database ###
|
113
|
#log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.CdmPostCrudObservableListener=trace
|
114
|
|
115
|
### log hibernate id generation
|
116
|
#log4j.logger.org.hibernate.id = INFO
|
117
|
#log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.TableGenerator=debug
|
118
|
|
119
|
### log dbunit dataset loading ####
|
120
|
#log4j.logger.org.dbunit.operation=debug
|
121
|
#log4j.logger.org.dbunit.operation.DeleteAllOperation=debug
|
122
|
|
123
|
#### log spring security #####
|
124
|
log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.permission=debug
|
125
|
log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.permission.CdmAuthority=warn
|
126
|
#log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.CdmSecurityHibernateInterceptor=debug
|
127
|
#log4j.logger.org.springframework.security.access.intercept=debug
|
128
|
#log4j.logger.org.springframework.security.access.vote=debug
|
129
|
#log4j.logger.eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest=debug
|
130
|
|
131
|
#### Lucene Fulltext index and cdmlib search facility####
|
132
|
#log4j.logger.org.apache.lucene=debug
|
133
|
#log4j.logger.org.apache.lucene.index.IndexWriter=debug
|
134
|
#log4j.logger.org.apache.lucene.store=debug
|
135
|
#log4j.logger.eu.etaxonomy.cdm.api.service.search=debug
|
136
|
log4j.logger.eu.etaxonomy.cdm.api.service=debug
|
137
|
#log4j.logger.eu.etaxonomy.cdm.api.service.search.LuceneSearch=warn
|
138
|
|
139
|
### *** Profiling Logger ************ ###
|
140
|
|
141
|
#log4j.logger.org.springframework.aop.interceptor.PerformanceMonitorInterceptor=TRACE, profiling
|
142
|
### Profiling output
|
143
|
#log4j.appender.profiling=org.apache.log4j.RollingFileAppender
|
144
|
#log4j.appender.profiling.File=profiling.log
|
145
|
#log4j.appender.profiling.MaxFileSize=1024KB
|
146
|
#log4j.appender.profiling.MaxBackupIndex=1
|
147
|
#log4j.appender.profiling.layout=org.apache.log4j.PatternLayout
|
148
|
#log4j.appender.profiling.layout.conversionPattern=%d,%p,%m%n
|
149
|
|
150
|
#log4j.logger.org.springframework.context.annotation.ClassPathBeanDefinitionScanner = trace
|
151
|
|