Project

General

Profile

Download (5.63 KB) Statistics
| Branch: | Tag: | Revision:
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 = warn
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.api.application = warn
38
#log4j.logger.eu.etaxonomy.cdm.database.VocabularyStoreImpl = info
39
#
40
log4j.logger.eu.etaxonomy.cdm.persistence.dao.hibernate.common = warn
41

    
42
log4j.logger.eu.etaxonomy.cdm.api.service.description.TransmissionEngineDistribution=info
43

    
44

    
45
  ### *** SPRING ************ ###
46
log4j.logger.org.springframework.transaction = warn
47
log4j.logger.org.hibernate.engine.LoadContexts = warn
48
log4j.logger.org.springframework.orm.hibernate3.SessionFactoryUtils = warn
49
log4j.logger.org.springframework.orm.hibernate3 = warn
50
log4j.logger.org.springframework.FileSystemXmlApplicationContext = warn;
51
log4j.logger.org.springframework.core.io.support = warn
52
#log4j.logger.org.springframework.context.support = trace
53

    
54

    
55
  ### ***HIBERNATE ************ ###
56

    
57
# suppress HHH90000003
58
log4j.logger.org.hibernate.orm.deprecation=ERROR
59

    
60
log4j.logger.org.hibernate=warn
61

    
62
### No warnings as thrown by SQLServer
63
###log4j.logger.org.hibernate.cfg = warn
64

    
65
### No warnings as thrown by SQLServer
66
log4j.logger.org.hibernate.util.JDBCExceptionReporter = error
67

    
68
### log HQL query parser activity
69
#log4j.logger.org.hibernate.hql.ast.AST=debug
70

    
71
### log just the SQL
72
#log4j.logger.org.hibernate.SQL=trace
73

    
74
### log JDBC bind parameters ###
75
#log4j.logger.org.hibernate.type=trace
76

    
77
### log schema export/update ###
78
log4j.logger.org.hibernate.tool.hbm2ddl=warn
79

    
80
### log HQL parse trees
81
log4j.logger.org.hibernate.hql=warn
82
log4j.logger.org.hibernate.hql.ast=warn
83

    
84
### log cache activity ###
85
#log4j.logger.org.hibernate.cache=debug
86

    
87
### log JDBC resource acquisition
88
log4j.logger.org.hibernate.jdbc=info
89

    
90
### avoid warnings about inappropriate Annotations ###
91
# TODO remove the below two line after updating to hibernate 4.x
92
#log4j.logger.org.hibernate.search.engine.DocumentBuilderContainedEntity=error
93
#log4j.logger.org.hibernate.search.impl.SearchFactoryImpl=error
94

    
95
### enable the following line if you want to track down connection ###
96
### leakages when using DriverManagerConnectionProvider ###
97
#log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace
98

    
99
### log transaction management & binding
100
#log4j.logger.eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest=debug
101
#log4j.logger.org.hibernate.transaction=debug
102
#log4j.logger.org.hibernate.engine.transaction=debug
103
#log4j.logger.org.springframework.transaction.support.TransactionSynchronizationManager=trace
104
#log4j.logger.org.springframework.orm.hibernate3.HibernateTransactionManager=trace
105
#log4j.logger.org.springframework.orm.hibernate5.HibernateTransactionManager=trace
106
#log4j.logger.org.springframework.orm.hibernate5=trace
107
#log4j.logger.org.springframework.orm.hibernate3=trace
108

    
109
### enable logging if you want to track what is happening in the database ###
110
#log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.CdmPostCrudObservableListener=trace
111

    
112
### log hibernate id generation
113
#log4j.logger.org.hibernate.id = INFO
114
#log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.TableGenerator=debug
115

    
116
### log dbunit dataset loading ####
117
#log4j.logger.org.dbunit.operation=debug
118
#log4j.logger.org.dbunit.operation.DeleteAllOperation=debug
119

    
120
#### log spring security #####
121
#log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.permission=debug
122
log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.permission.CdmAuthority=warn
123
#log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.CdmSecurityHibernateInterceptor=debug
124
#log4j.logger.org.springframework.security.access.intercept=debug
125
#log4j.logger.org.springframework.security.access.vote=debug
126
#log4j.logger.eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest=debug
127

    
128
#### Lucene Fulltext index and cdmlib search facility####
129
#log4j.logger.org.apache.lucene=debug
130
#log4j.logger.org.apache.lucene.index.IndexWriter=debug
131
#log4j.logger.org.apache.lucene.store=debug
132
#log4j.logger.eu.etaxonomy.cdm.api.service.search=debug
133
#log4j.logger.eu.etaxonomy.cdm.api.service=debug
134
#log4j.logger.eu.etaxonomy.cdm.api.service.search.LuceneSearch=warn
135

    
136
### *** Profiling Logger ************ ###
137

    
138
#log4j.logger.org.springframework.aop.interceptor.PerformanceMonitorInterceptor=TRACE, profiling
139
### Profiling output
140
#log4j.appender.profiling=org.apache.log4j.RollingFileAppender
141
#log4j.appender.profiling.File=profiling.log
142
#log4j.appender.profiling.MaxFileSize=1024KB
143
#log4j.appender.profiling.MaxBackupIndex=1
144
#log4j.appender.profiling.layout=org.apache.log4j.PatternLayout
145
#log4j.appender.profiling.layout.conversionPattern=%d,%p,%m%n
146

    
147
#log4j.logger.org.springframework.context.annotation.ClassPathBeanDefinitionScanner = trace
148

    
(1-1/2)