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
|
|
10
|
log4j.rootLogger= WARN, stdout
|
11
|
|
12
|
|
13
|
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
14
|
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
15
|
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
|
16
|
|
17
|
##
|
18
|
## NOTICE !!!!
|
19
|
## no need to configure a FileAppender here
|
20
|
## this is done in Bootloader.class for you
|
21
|
##
|
22
|
|
23
|
|
24
|
###
|
25
|
# cdm
|
26
|
###
|
27
|
log4j.logger.eu.etaxonomy.cdm = INFO
|
28
|
# avoid vast amount of "getCitation not yet implemented" & "getProblems not yet implemented" messages
|
29
|
log4j.logger.eu.etaxonomy.cdm.model.name.TaxonNameBase = ERROR
|
30
|
log4j.logger.eu.etaxonomy.cdm.database.UpdatableRoutingDataSource = INFO
|
31
|
log4j.logger.eu.etaxonomy.cdm.persistence.dao.AbstractBeanInitializer = ERROR
|
32
|
log4j.logger.eu.etaxonomy.cdm.remote.controller = WARN
|
33
|
#log4j.logger.eu.etaxonomy.cdm.remote.json.processor.AbstractCdmBeanProcessor = DEBUG
|
34
|
log4j.logger.eu.etaxonomy.cdm.remote.controller = INFO
|
35
|
log4j.logger.eu.etaxonomy.cdm.remote.controller.interceptor = WARN
|
36
|
# prevent CdmExceptionResolver from logging errors
|
37
|
log4j.logger.eu.etaxonomy.cdm.remote.exception.CdmExceptionResolver = ERROR
|
38
|
|
39
|
log4j.logger.eu.etaxonomy.cdm.server = INFO
|
40
|
|
41
|
###
|
42
|
# springframework
|
43
|
###
|
44
|
log4j.logger.org.springframework = WARN
|
45
|
log4j.logger.org.springframework.web.servlet.DispatcherServlet = WARN
|
46
|
log4j.logger.org.springframework.web.servlet.mvc.annotation = WARN
|
47
|
#log4j.category.org.springframework.web.servlet.mvc.support=DEBUG, stdout
|
48
|
log4j.logger.org.springframework.web.servlet.view = WARN
|
49
|
|
50
|
###
|
51
|
# json-lib
|
52
|
###
|
53
|
log4j.logger.net.sf.json.JSONObject = ERROR
|
54
|
|
55
|
###
|
56
|
# Hibernate
|
57
|
###
|
58
|
log4j.logger.org.hibernate=WARN
|
59
|
# log just the SQL
|
60
|
log4j.logger.org.hibernate.SQL=WARN
|
61
|
log4j.logger.org.hibernate.search = ERROR
|
62
|
# log JDBC bind parameters
|
63
|
log4j.logger.org.hibernate.type=WARN
|
64
|
# log schema export/update
|
65
|
log4j.logger.org.hibernate.tool.hbm2ddl=WARN
|
66
|
# This overcomes the proxy narrow log of hibernate
|
67
|
log4j.logger.org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog=ERROR
|
68
|
log4j.logger.com.mchange.v2.c3p0=WARN
|
69
|
|
70
|
###
|
71
|
# jetty
|
72
|
###
|
73
|
# !!! jetty currently does not work with log4j
|
74
|
# need to implement log4j implementation of org.eclipse.jetty.util.log.Logger ?
|
75
|
#log4j.logger.org.eclipse.jetty.server=INFO
|