Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdmlib / cdmlib-services / src / test / resources / log4j.properties @ 376b705d

History | View | Annotate | Download (5.49 KB)

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
log4j.logger.eu.etaxonomy.cdm.common.monitor.DefaultProgressMonitor = info
37
#
38
log4j.logger.eu.etaxonomy.cdm.api.application = warn
39
#log4j.logger.eu.etaxonomy.cdm.database.VocabularyStoreImpl = info
40
#
41
log4j.logger.eu.etaxonomy.cdm.persistence.dao.hibernate.common = warn
42

    
43
log4j.logger.eu.etaxonomy.cdm.api.service.description.DistributionAggregation=info
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
log4j.logger.org.hibernate.engine.internal.StatefulPersistenceContext = ERROR
60

    
61
log4j.logger.org.hibernate=warn
62

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

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

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

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

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

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

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

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

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

    
91
### enable the following line if you want to track down connection ###
92
### leakages when using DriverManagerConnectionProvider ###
93
#log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace
94

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

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

    
108
### log hibernate id generation
109
#log4j.logger.org.hibernate.id = INFO
110
#log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.TableGenerator=debug
111

    
112
### log dbunit dataset loading ####
113
#log4j.logger.org.dbunit.operation=debug
114
#log4j.logger.org.dbunit.operation.DeleteAllOperation=debug
115

    
116
#### log spring security #####
117
#log4j.logger.eu.etaxonomy.cdm.persistence.permission=debug
118
log4j.logger.eu.etaxonomy.cdm.persistence.permission.CdmAuthority=warn
119
#log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.CdmSecurityHibernateInterceptor=debug
120
#log4j.logger.org.springframework.security.access.intercept=debug
121
#log4j.logger.org.springframework.security.access.vote=debug
122
#log4j.logger.eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest=debug
123

    
124
#### Lucene Fulltext index and cdmlib search facility####
125
#log4j.logger.org.apache.lucene=debug
126
#log4j.logger.org.apache.lucene.index.IndexWriter=debug
127
#log4j.logger.org.apache.lucene.store=debug
128
#log4j.logger.eu.etaxonomy.cdm.api.service.search=debug
129
#log4j.logger.eu.etaxonomy.cdm.api.service=debug
130
#log4j.logger.eu.etaxonomy.cdm.api.service.search.LuceneSearch=warn
131

    
132
### *** Profiling Logger ************ ###
133

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

    
143
#log4j.logger.org.springframework.context.annotation.ClassPathBeanDefinitionScanner = trace
144

    
Add picture from clipboard (Maximum size: 40 MB)