Project

General

Profile

Download (3.22 KB) Statistics
| Branch: | Tag: | Revision:
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, FILE
11

    
12
# NOTE:
13
#   For logging to files see http://www.eclipse.org/jetty/documentation/current/configuring-logging-modules.html 
14
#
15

    
16
log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender
17

    
18
# Set the name of the file
19
log4j.appender.FILE.File= /var/log/cdmserver/cdmserver_log.out
20

    
21
# Set the immediate flush to true (default)
22
log4j.appender.FILE.ImmediateFlush=true
23

    
24
# Set the threshold to debug mode
25
log4j.appender.FILE.Threshold=debug
26

    
27
# Set the append to true, should not overwrite
28
log4j.appender.FILE.Append=true
29

    
30
# Set the DatePattern
31
log4j.appender.FILE.DatePattern='.'yyyy-MM-dd
32

    
33
#
34
# NOTE 
35
#   All ConversionPatterns of PatternLayouts will be prefixed by the 
36
#   eu.etaxonomy.cdm.api.config.LoggingConfigurer with the cdm instance name
37
#   See also issue #6249 
38
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
39
log4j.appender.FILE.layout.ConversionPattern=%d %p [%c] - %m%n
40

    
41
log4j.logger.eu.etaxonomy.cdm.server = INFO
42

    
43
###
44
# cdm
45
###
46
log4j.logger.eu.etaxonomy.cdm = INFO
47
# 	  avoid vast amount of "getCitation not yet implemented" & "getProblems not yet implemented" messages
48
log4j.logger.eu.etaxonomy.cdm.model.name.TaxonNameBase = ERROR
49
log4j.logger.eu.etaxonomy.cdm.persistence.dao.initializer = ERROR
50
log4j.logger.eu.etaxonomy.cdm.cache.CdmTransientEntityCacher = WARN
51
log4j.logger.eu.etaxonomy.cdm.remote.config = INFO
52
#log4j.logger.eu.etaxonomy.cdm.remote.json.processor.AbstractCdmBeanProcessor  = DEBUG
53
log4j.logger.eu.etaxonomy.cdm.remote.controller = INFO
54
log4j.logger.eu.etaxonomy.cdm.remote.controller.interceptor = WARN
55
#     prevent CdmExceptionResolver from logging errors
56
log4j.logger.eu.etaxonomy.cdm.remote.exception.CdmExceptionResolver = ERROR
57

    
58
log4j.logger.eu.etaxonomy.cdm.server = INFO
59

    
60
###
61
# springframework
62
###
63
log4j.logger.org.springframework = WARN
64
log4j.logger.org.springframework.web.servlet.DispatcherServlet = WARN
65
log4j.logger.org.springframework.web.servlet.mvc.annotation = WARN
66
#log4j.category.org.springframework.web.servlet.mvc.support=DEBUG, FILE
67
log4j.logger.org.springframework.web.servlet.view = WARN
68

    
69
###
70
# json-lib
71
###
72
log4j.logger.net.sf.json.JSONObject = ERROR
73

    
74
###
75
# Hibernate
76
###
77
log4j.logger.org.hibernate=WARN
78
#     log just the SQL
79
log4j.logger.org.hibernate.SQL=WARN
80
log4j.logger.org.hibernate.search = ERROR
81
#     log JDBC bind parameters
82
log4j.logger.org.hibernate.type=WARN
83
#     log schema export/update
84
log4j.logger.org.hibernate.tool.hbm2ddl=WARN
85
# This overcomes the proxy narrow log of hibernate
86
log4j.logger.org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog=ERROR
87
log4j.logger.com.mchange.v2.c3p0=WARN
88

    
89
# supress HHH90000003
90
log4j.logger.org.hibernate.orm.deprecation=ERROR
91
# suppress nasty ehcache OutOfMemory warnings
92
log4j.logger.net.sf.ehcache.config.CacheConfiguration=ERROR
93

    
94

    
95

    
96
###
97
# jetty
98
###
99
# !!! jetty currently does not work with log4j
100
#     need to implement log4j implementation of org.eclipse.jetty.util.log.Logger ?
101
#log4j.logger.org.eclipse.jetty.server=INFO
(2-2/4)