Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdmlib / cdmlib-persistence / src / test / resources / log4j.properties @ f974bf29

History | View | Annotate | Download (4.83 KB)

1 597358de ben.clark
### ************ 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 cc71e365 Andreas Kohlbecker
23
### avoid warnings about inappropriate Annotations ###
24
# TODO remove the below two line after updating to hibernate 4.x
25 597358de ben.clark
log4j.logger.org.hibernate.search.engine.DocumentBuilderContainedEntity=error
26
log4j.logger.org.hibernate.search.impl.SearchFactoryImpl=error
27
28 397763df Andreas Kohlbecker
  ### *** jUnitBenchmarks *** ###
29 728d61f8 Andreas Kohlbecker
#log4j.logger.com.carrotsearch.junitbenchmarks=INFO
30 397763df Andreas Kohlbecker
31
  ### *** CDM *** ###
32
33
#log4j.logger.eu.etaxonomy.cdm = info
34 597358de ben.clark
#log4j.logger.eu.etaxonomy.cdm.database.init = debug
35
36
37 397763df Andreas Kohlbecker
  ### *** SPRING ************ ###
38 597358de ben.clark
#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 3575760c Andreas Kohlbecker
#### log spring security #####
45 d21b797c Andreas Kohlbecker
#log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.permission=debug
46 3575760c Andreas Kohlbecker
log4j.logger.eu.etaxonomy.cdm.persistence.hibernate.permission.CdmAuthority=warn
47 d21b797c Andreas Kohlbecker
#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 3575760c Andreas Kohlbecker
#log4j.logger.eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest=debug
51
52 ccf1f2f1 Andreas Müller
#org.dbunit.database.statement.AutomaticPreparedBatchStatement
53
54 597358de ben.clark
55 397763df Andreas Kohlbecker
  ### ***HIBERNATE ************ ###
56 597358de ben.clark
57
#log4j.logger.org.hibernate=warn, file
58
#log4j.logger.org.hibernate.tool.hbm2ddl.SchemaExport = error
59
#log4j.logger.org.hibernate.engine.LoadContexts = error
60
#
61
#log4j.logger.org.hibernate.envers.event.AuditEventListener = debug, file
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 b9b58fbb Andreas Kohlbecker
# to log more context specific use this snipped in the code:
74
#     Logger.getLogger("org.hibernate.SQL").setLevel(Level.TRACE);
75 597358de ben.clark
#log4j.logger.org.hibernate.SQL=TRACE
76
77 b9b58fbb Andreas Kohlbecker
### log just hibernate processing queries 
78
#log4j.logger.org.hibernate.engine.query = TRACE
79
80 597358de ben.clark
### log JDBC bind parameters ###
81
#log4j.logger.org.hibernate.type=TRACE
82
83
### log schema export/update ###
84
#log4j.logger.org.hibernate.tool.hbm2ddl=warn
85
86
### log HQL parse trees
87
#log4j.logger.org.hibernate.hql=debug
88
89
### log cache activity ###
90
#log4j.logger.org.hibernate.cache=debug
91
92 6eaec751 Andreas Kohlbecker
### log transaction management & binding
93 2fda5012 Andreas Kohlbecker
#log4j.logger.org.hibernate.transaction=debug
94
#log4j.logger.org.springframework.transaction.support.TransactionSynchronizationManager=trace
95 6eaec751 Andreas Kohlbecker
#log4j.logger.org.springframework.orm.hibernate3.HibernateTransactionManager=trace
96 2fda5012 Andreas Kohlbecker
#log4j.logger.org.springframework.orm.hibernate3=trace
97 6eaec751 Andreas Kohlbecker
98 62727fb6 Andreas Kohlbecker
### log AuditEvent Management ####
99
#log4j.logger.eu.etaxonomy.cdm.persistence.dao.hibernate.common.VersionableDaoBase=debug
100 597358de ben.clark
101
### log JDBC resource acquisition
102
#log4j.logger.org.hibernate.jdbc=info
103
104 62727fb6 Andreas Kohlbecker
### log hibernate id generation
105 728d61f8 Andreas Kohlbecker
#log4j.logger.org.hibernate.id = INFO
106 62727fb6 Andreas Kohlbecker
107 597358de ben.clark
### enable the following line if you want to track down connection ###
108
### leakages when using DriverManagerConnectionProvider ###
109
#log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace
110
111 0930d1c2 Andreas Kohlbecker
###  hibernate search & Lucene
112 6411c702 Andreas Kohlbecker
#log4j.logger.eu.etaxonomy.cdm.search.LuceneSearch=info
113 0930d1c2 Andreas Kohlbecker
114 397763df Andreas Kohlbecker
### log CDM-Updater
115 adaa0c47 Andreas Kohlbecker
log4j.logger.eu.etaxonomy.cdm.database.update=info
116
117 597358de ben.clark
   ### *** Profiling Logger ************ ###
118 397763df Andreas Kohlbecker
119 597358de ben.clark
#log4j.logger.org.springframework.aop.interceptor.PerformanceMonitorInterceptor=TRACE, profiling
120
### Profiling output
121
#log4j.appender.profiling=org.apache.log4j.RollingFileAppender
122
#log4j.appender.profiling.File=profiling.log
123
#log4j.appender.profiling.MaxFileSize=1024KB
124
#log4j.appender.profiling.MaxBackupIndex=1
125
#log4j.appender.profiling.layout=org.apache.log4j.PatternLayout
126
#log4j.appender.profiling.layout.conversionPattern=%d,%p,%m%n
127
128 c8844c30 Andreas Kohlbecker
### log dbUnit data loading
129 728d61f8 Andreas Kohlbecker
#log4j.appender.org.unitils.dbunit=debug
130
#log4j.appender.org.dbunit=debug
131
#log4j.appender.org.dbunit.database.statement=debug
132
#log4j.appender.org.dbunit.database.DatabaseConfig=trace
133 c8844c30 Andreas Kohlbecker
Add picture from clipboard (Maximum size: 40 MB)