Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdm-server / src / main / resources / log4j.properties @ 045673ca

History | View | Annotate | Download (3.03 KB)

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= 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-HH
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.remote.config = INFO
51
#log4j.logger.eu.etaxonomy.cdm.remote.json.processor.AbstractCdmBeanProcessor  = DEBUG
52
log4j.logger.eu.etaxonomy.cdm.remote.controller = INFO
53
log4j.logger.eu.etaxonomy.cdm.remote.controller.interceptor = WARN
54
#     prevent CdmExceptionResolver from logging errors
55
log4j.logger.eu.etaxonomy.cdm.remote.exception.CdmExceptionResolver = ERROR
56

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

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

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

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

    
88
# supress HHH90000003
89
log4j.logger.org.hibernate.orm.deprecation=ERROR
90

    
91

    
92
###
93
# jetty
94
###
95
# !!! jetty currently does not work with log4j
96
#     need to implement log4j implementation of org.eclipse.jetty.util.log.Logger ?
97
#log4j.logger.org.eclipse.jetty.server=INFO
Add picture from clipboard (Maximum size: 40 MB)