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=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=trace, stdout
|
21
|
|
22
|
### *** CDM *** ###
|
23
|
|
24
|
log4j.logger.eu.etaxonomy.cdm = info
|
25
|
log4j.logger.eu.etaxonomy.cdm.api.application.eclipse = warn
|
26
|
log4j.logger.eu.etaxonomy.cdm.io.berlinModel = info
|
27
|
log4j.logger.eu.etaxonomy.cdm.io.berlinModel.BerlinModelTaxonIO = info
|
28
|
log4j.logger.eu.etaxonomy.cdm.model.common.init = warn
|
29
|
|
30
|
|
31
|
### *** SPRING ************ ###
|
32
|
log4j.logger.org.springframework.transaction = warn
|
33
|
log4j.logger.org.hibernate.engine.LoadContexts = error
|
34
|
log4j.logger.org.springframework.orm.hibernate3.SessionFactoryUtils = info
|
35
|
log4j.logger.org.springframework.orm.hibernate3 = info
|
36
|
log4j.logger.org.springframework.FileSystemXmlApplicationContext = warn;
|
37
|
log4j.logger.org.springframework.core.io.support = info
|
38
|
|
39
|
|
40
|
### ***HIBERNATE ************ ###
|
41
|
|
42
|
log4j.logger.org.hibernate=warn
|
43
|
|
44
|
### No warnings as thrown by SQLServer
|
45
|
log4j.logger.org.hibernate.cfg = warn
|
46
|
|
47
|
### No warnings as thrown by SQLServer
|
48
|
log4j.logger.org.hibernate.util.JDBCExceptionReporter = error
|
49
|
|
50
|
### log HQL query parser activity
|
51
|
#log4j.logger.org.hibernate.hql.ast.AST=debug
|
52
|
|
53
|
### log just the SQL
|
54
|
log4j.logger.org.hibernate.SQL=warn
|
55
|
|
56
|
### log JDBC bind parameters ###
|
57
|
log4j.logger.org.hibernate.type=warn
|
58
|
|
59
|
### log schema export/update ###
|
60
|
log4j.logger.org.hibernate.tool.hbm2ddl=warn
|
61
|
|
62
|
### log HQL parse trees
|
63
|
#log4j.logger.org.hibernate.hql=debug
|
64
|
|
65
|
### log cache activity ###
|
66
|
#log4j.logger.org.hibernate.cache=debug
|
67
|
|
68
|
### log transaction activity
|
69
|
#log4j.logger.org.hibernate.transaction=debug
|
70
|
|
71
|
### log JDBC resource acquisition
|
72
|
log4j.logger.org.hibernate.jdbc=info
|
73
|
|
74
|
### enable the following line if you want to track down connection ###
|
75
|
### leakages when using DriverManagerConnectionProvider ###
|
76
|
#log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace
|