Revision 3775575b
Added by Patrick Plitzner over 5 years ago
src/main/resources/log4j.properties | ||
---|---|---|
7 | 7 |
# java -Dlog4j.configDebug=true |
8 | 8 |
# |
9 | 9 |
|
10 |
log4j.rootLogger= WARN, stdout
|
|
10 |
log4j.rootLogger= WARN, FILE
|
|
11 | 11 |
|
12 | 12 |
# NOTE: |
13 | 13 |
# For logging to files see http://www.eclipse.org/jetty/documentation/current/configuring-logging-modules.html |
14 | 14 |
# |
15 | 15 |
|
16 |
log4j.appender.stdout=org.apache.log4j.ConsoleAppender |
|
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-HH |
|
32 |
|
|
17 | 33 |
# |
18 | 34 |
# NOTE |
19 | 35 |
# All ConversionPatterns of PatternLayouts will be prefixed by the |
20 | 36 |
# eu.etaxonomy.cdm.api.config.LoggingConfigurer with the cdm instance name |
21 | 37 |
# See also issue #6249 |
22 |
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
|
23 |
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
|
|
38 |
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
|
|
39 |
log4j.appender.FILE.layout.ConversionPattern=%d %p [%c] - %m%n
|
|
24 | 40 |
|
25 | 41 |
log4j.logger.eu.etaxonomy.cdm.server = INFO |
26 | 42 |
|
... | ... | |
46 | 62 |
log4j.logger.org.springframework = WARN |
47 | 63 |
log4j.logger.org.springframework.web.servlet.DispatcherServlet = WARN |
48 | 64 |
log4j.logger.org.springframework.web.servlet.mvc.annotation = WARN |
49 |
#log4j.category.org.springframework.web.servlet.mvc.support=DEBUG, stdout
|
|
65 |
#log4j.category.org.springframework.web.servlet.mvc.support=DEBUG, FILE
|
|
50 | 66 |
log4j.logger.org.springframework.web.servlet.view = WARN |
51 | 67 |
|
52 | 68 |
### |
Also available in: Unified diff
ref #7085 Use DailyRollingFileAppender to generate one log per day