Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (4.88 KB)

1
### ************ APPENDER ***********************************###
2

    
3
### direct log messages to stdout ###
4
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
5
log4j.appender.stdout.Target=System.out
6
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
7
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
8

    
9
### direct messages to file hibernate.log ###
10
log4j.appender.file=org.apache.log4j.FileAppender
11
log4j.appender.file.File=target/hibernate.log
12
log4j.appender.file.layout=org.apache.log4j.PatternLayout
13
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
14

    
15

    
16
### ************* LOG LEVELS *********************************###
17

    
18
### set log levels - for more verbose logging change 'info' to 'debug' ###
19

    
20
log4j.rootLogger=warn,stdout
21
log4j.logger.org.dbunit=error
22

    
23
### avoid warnings about inappropriate Annotations ###
24
# TODO remove the below two line after updating to hibernate 4.x
25
log4j.logger.org.hibernate.search.engine.DocumentBuilderContainedEntity=error
26
log4j.logger.org.hibernate.search.impl.SearchFactoryImpl=error
27

    
28
  ### *** jUnitBenchmarks *** ###
29
#log4j.logger.com.carrotsearch.junitbenchmarks=INFO
30

    
31
  ### *** CDM *** ###
32

    
33
#log4j.logger.eu.etaxonomy.cdm = info
34
#log4j.logger.eu.etaxonomy.cdm.database.init = debug
35

    
36

    
37
  ### *** SPRING ************ ###
38
#log4j.logger.org.springframework.transaction = warn
39
#log4j.logger.org.springframework.orm.hibernate3.SessionFactoryUtils = info
40
#log4j.logger.org.springframework.orm.hibernate3 = info
41
#log4j.logger.org.springframework.FileSystemXmlApplicationContext = warn
42
#log4j.logger.org.springframework.core.io.support = info
43

    
44
#### log spring security #####
45
#log4j.logger.eu.etaxonomy.cdm.persistence.permission=debug
46
log4j.logger.eu.etaxonomy.cdm.persistence.permission.CdmAuthority=warn
47
#log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.CdmSecurityHibernateInterceptor=debug
48
#log4j.logger.org.springframework.security.access.intercept=debug
49
#log4j.logger.org.springframework.security.access.vote=debug
50
#log4j.logger.eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest=debug
51

    
52
#org.dbunit.database.statement.AutomaticPreparedBatchStatement
53

    
54

    
55

    
56
### ***HIBERNATE ************ ###
57

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

    
61
#log4j.logger.org.hibernate=warn, file
62
#log4j.logger.org.hibernate.tool.hbm2ddl.SchemaExport = error
63
#log4j.logger.org.hibernate.engine.LoadContexts = error
64
#
65
#log4j.logger.org.hibernate.envers.event.AuditEventListener = debug, file
66

    
67
### No warnings as thrown by SQLServer
68
#log4j.logger.org.hibernate.cfg = warn
69

    
70
### No warnings as thrown by SQLServer
71
#log4j.logger.org.hibernate.util.JDBCExceptionReporter = error
72

    
73
### log HQL query parser activity
74
#log4j.logger.org.hibernate.hql.ast.AST=debug
75

    
76
### log just the SQL
77
# to log more context specific use this snipped in the code:
78
#     Logger.getLogger("org.hibernate.SQL").setLevel(Level.TRACE);
79
#log4j.logger.org.hibernate.SQL=TRACE
80

    
81
### log just hibernate processing queries 
82
#log4j.logger.org.hibernate.engine.query = TRACE
83

    
84
### log JDBC bind parameters ###
85
#log4j.logger.org.hibernate.type=TRACE
86

    
87
### log schema export/update ###
88
#log4j.logger.org.hibernate.tool.hbm2ddl=warn
89

    
90
### log HQL parse trees
91
#log4j.logger.org.hibernate.hql=debug
92

    
93
### log cache activity ###
94
#log4j.logger.org.hibernate.cache=debug
95

    
96
### log transaction management & binding
97
#log4j.logger.org.hibernate.transaction=debug
98
#log4j.logger.org.springframework.transaction.support.TransactionSynchronizationManager=trace
99
#log4j.logger.org.springframework.orm.hibernate3.HibernateTransactionManager=trace
100
#log4j.logger.org.springframework.orm.hibernate3=trace
101

    
102
### log AuditEvent Management ####
103
#log4j.logger.eu.etaxonomy.cdm.persistence.dao.hibernate.common.VersionableDaoBase=debug
104

    
105
### log JDBC resource acquisition
106
#log4j.logger.org.hibernate.jdbc=info
107

    
108
### log hibernate id generation
109
#log4j.logger.org.hibernate.id = INFO
110

    
111
### enable the following line if you want to track down connection ###
112
### leakages when using DriverManagerConnectionProvider ###
113
#log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace
114

    
115
###  hibernate search & Lucene
116
#log4j.logger.eu.etaxonomy.cdm.search.LuceneSearch=info
117

    
118
### log CDM-Updater
119
log4j.logger.eu.etaxonomy.cdm.database.update=info
120

    
121
   ### *** Profiling Logger ************ ###
122

    
123
#log4j.logger.org.springframework.aop.interceptor.PerformanceMonitorInterceptor=TRACE, profiling
124
### Profiling output
125
#log4j.appender.profiling=org.apache.log4j.RollingFileAppender
126
#log4j.appender.profiling.File=profiling.log
127
#log4j.appender.profiling.MaxFileSize=1024KB
128
#log4j.appender.profiling.MaxBackupIndex=1
129
#log4j.appender.profiling.layout=org.apache.log4j.PatternLayout
130
#log4j.appender.profiling.layout.conversionPattern=%d,%p,%m%n
131

    
132
### log dbUnit data loading
133
#log4j.appender.org.unitils.dbunit=debug
134
#log4j.appender.org.dbunit=debug
135
#log4j.appender.org.dbunit.database.statement=debug
136
#log4j.appender.org.dbunit.database.DatabaseConfig=trace
137

    
138

    
Add picture from clipboard (Maximum size: 40 MB)