Project

General

Profile

Download (3.1 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= ${LOGGING_FOLDER}/cdmserver.log
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
log4j.appender.FILE.DatePattern='.'yyyy-MM-dd-HH-mm
33

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

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

    
44
###
45
# cdm
46
###
47
log4j.logger.eu.etaxonomy.cdm = INFO
48
# 	  avoid vast amount of "getCitation not yet implemented" & "getProblems not yet implemented" messages
49
log4j.logger.eu.etaxonomy.cdm.model.name.TaxonNameBase = ERROR
50
log4j.logger.eu.etaxonomy.cdm.persistence.dao.initializer = ERROR
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

    
92

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