forked from harvard-lts/FITSservlet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.log4j.properties
61 lines (55 loc) · 2.59 KB
/
tests.log4j.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#------------------------------------------------------------------------------
#
# The following properties set the logging levels and log appender. The
# log4j.rootCategory variable defines the default log level plus one or more
# appenders.
#
# To override the default (rootCategory) log level,
# define a property of the form (see below for available values):
#
# Available logger names:
# CONSOLE The command line console (defaults to standard error output)
# FILE The log file to write to.
#
# Possible Log Levels:
# ERROR - only errors during processing are logged, or FATAL.
# WARN - warnings, errors and fatal are logged.
# INFO - general info messages and all the above are logged.
# DEBUG - more detailed messages and all the above are logged.
# TRACE - the most detailed messages and all the above are logged.
#
# OFF - This will turn off logging for an appender.
#
#------------------------------------------------------------------------------
log4j.rootLogger=INFO, CONSOLE, FILE
# create substitutions for appenders
date-pattern={yyyy-MM-dd HH:mm:ss}
#------------------------------------------------------------------------------
# direct log messages to console
#------------------------------------------------------------------------------
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Target=System.out
log4j.appender.CONSOLE.Threshold=INFO
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%d${date-pattern} - %5p - [%t] %c{1}:%L - %m%n
#------------------------------------------------------------------------------
# direct messages to a log file
#
# The following properties configure the Rolling File appender.
# See http://logging.apache.org/log4j/1.2/ for details.
#
#------------------------------------------------------------------------------
log4j.appender.FILE=org.apache.log4j.FileAppender
# The following path is specific to Tomcat. Modify for another server or destination locations.
log4j.appender.FILE.File=test.log
#log4j.appender.FILE.File=./fits-service.log
log4j.appender.FILE.Threshold=INFO
log4j.appender.FILE.Append=true
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=%d${date-pattern} - %5p - %c{1}:%L - %m%n
#----------------------------------------------------------
#
# Class- and package-specific loggers for debugging if necessary
log4j.logger.uk.gov.nationalarchives.droid=FATAL,CONSOLE
log4j.logger.edu.harvard.hul.ois.jhove=FATAL,CONSOLE
log4j.logger.org.apache.tika=FATAL,CONSOLE