forked from JMRI/JMRI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.lcf
135 lines (110 loc) · 5.31 KB
/
tests.lcf
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Log4J configuration file for running JMRI JUnit tests
# #############################################################
# Log4J configuration
# #############################################################
# For the general syntax of property based configuration files see the
# documentation of org.apache.log4j.PropertyConfigurator
# or jmri.org/help/en/html/doc/Technical/Logging.shtml
# This configures three appenders: J, R and A1. J and R
# are used routinely; A1 is for debugging use.
# The default level for test logging is WARN: All the specific
# class loggers are initially set to ignore everything below that.
# You can set a specific class to e.g. debug so that it does
# log its information instead of ignoring it, see examples
# at the bottom. Then the logging level on each appender (see
# below) is used to decide if the data is actually logged.
# Add A1 in the next line to turn it on
log4j.rootCategory= WARN, R, J
log4j.category.jmri=WARN
# The R appender writes all logging output to the tests.log
# file. This includes messages that the tests have intentionally
# suppressed, so it's quite verbose.
# The J appender is a JMRI-specific one, configured so that JMRI tests
# can examine their output. Changing the levels or
# format of J can result in obscure test failures.
# The conversion patterns use format specifiers. For details, see
# the org.apache.log4j.PatternLayout Javadocs. To summarize:
#
# c category, e.g. %c{2} for right-most two tokens
# C classname of call (slow)
# d date, e.g. %d{ISO8601}, %d{ABSOLUTE}, %d{DATE}, %d{HH:mm:ss,SSS}
# or %d{dd MMM yyyy HH:mm:ss,SSS}
# F filename of call (slow)
# l location, JVM-dependent (extremely slow)
# m message
# M method name (slow)
# n line separator
# p priority
# r milliseconds elapsed
# t thread
# x nested diagnostic context
# % the sequence %% emits a single %
#
# Justification, padding and truncation can be controlled e.g. %-5.10p
# is left justified, at least 5 and no more than 10 characters wide
# J is a jmri.util.JUnitAppender which provides hooks used to test
# whether a given log message is expected or not, and whether ERROR messages
# have been logged.
log4j.appender.J=jmri.util.JUnitAppender
# J writes to system.err to synchronize with e.g. exception traces
log4j.appender.J.target=System.err
# J uses PatternLayout to control the format of the log messages.
log4j.appender.J.layout=org.apache.log4j.PatternLayout
log4j.appender.J.layout.ConversionPattern=%-5p - %m [%t] %c{4}.%M()%n
# always limit output to INFO; various tests require that
log4j.appender.J.Threshold=INFO
# R is set to output all enabled logging to the tests.log file in the CWD
log4j.appender.R=org.apache.log4j.FileAppender
log4j.appender.R.File=tests.log
log4j.appender.R.Append=false
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{ss,SSS} [%t] %-5p %c{2}.%M() - %m%n
log4j.appender.R.Threshold=TRACE
# A1 is set to be a ConsoleAppender which outputs to System.err.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.target=System.err
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{ss,SSS} [%t] %-5p %c{2}.%M() - %m%n
log4j.appender.A1.Threshold=TRACE
# ###################################################################
# Configure some verbose components
# ###################################################################
# Default Jetty server to only logging WARN since INFO can be verbose at points
log4j.category.org.eclipse.jetty=WARN
log4j.category.org.eclipse.jetty.server.handler=WARN
# Turning off logging for Java Xerces; emits WARNING messages during routine use
log4j.category.org.jdom2.transform=SEVERE
# Turning off logging for Java JMDNS; logs SEVERE and WARNING to j.u.l too routinely
log4j.category.com.strangeberry=OFF
log4j.category.javax.jmdns=OFF
# Turning off logging for the WebDriver Manager
log4j.category.io.github.bonigarcia.wdm=OFF
# ###################################################################
# Examples of how you can ask for more detailed logging
# ###################################################################
# Valid priority names are FATAL, ERROR, WARN, INFO, DEBUG, and TRACE.
# Examples of changing priority of specific categories (classes, packages):
#
# log4j.category.apps=DEBUG
# log4j.category.jmri.profile=DEBUG
# log4j.category.jmri.implementation.SignalSpeedMap=DEBUG
# log4j.category.jmri.jmrit.symbolicprog.DecVariableValue=DEBUG
# log4j.category.jmri.jmrit.symbolicprog=DEBUG
# log4j.category.jmri.jmrix.nce=DEBUG
# log4j.category.jmri.jmrix.nce.NceTrafficController=DEBUG
# log4j.category.jmri.server.json=TRACE
# ###################################################################
# Settings needed for specific tests (last so not accidentally overridden)
# ###################################################################
# Needed for Jenkins I18N testing
log4j.category.jmri.util.I18NTest=DEBUG
# Needed for jmri.util.Log4JUtilTest
log4j.category.jmri.util.Log4JUtilTest = WARN
# Needed for jmri.util.JUnitAppenderTest
log4j.category.jmri.util.JUnitAppenderTest = INFO
# INFO is part of application tests
log4j.category.apps.Apps = INFO
log4j.category.apps.AppsBase = INFO
log4j.category.apps.PanelPro.PanelPro = INFO
log4j.category.apps.gui3.Apps3 = INFO
log4j.category.apps.gui3.dp3.DecoderPro3 = INFO