Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdmlib / cdmlib-services / src / test / resources / log4j.properties @ c80938b2

History | View | Annotate | Download (5.25 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 = 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 = debug
41
#log4j.logger.eu.etaxonomy.cdm.database.VocabularyStoreImpl = warn
42
#
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
46

    
47

    
48

    
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

    
59

    
60
  ### ***HIBERNATE ************ ###
61

    
62
log4j.logger.org.hibernate=warn
63

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

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

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

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

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

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

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

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

    
89
### log transaction activity
90
#log4j.logger.org.hibernate.transaction=debug
91

    
92
### log JDBC resource acquisition
93
log4j.logger.org.hibernate.jdbc=info
94

    
95
### avoid warnings about inappropriate Annotations ###
96
# TODO remove the below two line after updating to hibernate 4.x
97
log4j.logger.org.hibernate.search.engine.DocumentBuilderContainedEntity=error
98
log4j.logger.org.hibernate.search.impl.SearchFactoryImpl=error
99

    
100
### enable the following line if you want to track down connection ###
101
### leakages when using DriverManagerConnectionProvider ###
102
#log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace
103

    
104
### log transaction management & binding
105
#log4j.logger.org.hibernate.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.hibernate3=trace
109

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

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

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

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

    
129
#### Lucene Fulltext index and cdmlib search facility####
130
#log4j.logger.org.apache.lucene=debug
131
log4j.logger.eu.etaxonomy.cdm.search.LuceneSearch=warn
132

    
133
### *** Profiling Logger ************ ###
134

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

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

    
Add picture from clipboard (Maximum size: 40 MB)