From 67191566699041d38f9a0660d665b92994869225 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 26 Feb 2022 20:34:58 +0100 Subject: [PATCH] Add simplelogger.properties in pmd-test This provides a default configuration that will be used when resetting the logger configuration in CLITests or PMDTaskTest. Without this, slf4j-simple will keep the last configured default level. Now it will use the default level configured in simplelogger. Since pmd-test is not part of the distribution, this configuration file has no effect for the binaries. --- .../main/resources/simplelogger.properties | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pmd-test/src/main/resources/simplelogger.properties diff --git a/pmd-test/src/main/resources/simplelogger.properties b/pmd-test/src/main/resources/simplelogger.properties new file mode 100644 index 0000000000..eb4277c2cb --- /dev/null +++ b/pmd-test/src/main/resources/simplelogger.properties @@ -0,0 +1,22 @@ +# +# BSD-style license; for more info see http://pmd.sourceforge.net/license.html +# + +org.slf4j.simpleLogger.logFile=System.err +org.slf4j.simpleLogger.showDateTime=false +org.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd'T'HH:mm:ss.SSSXXX +org.slf4j.simpleLogger.showThreadName=true +org.slf4j.simpleLogger.showThreadId=false +org.slf4j.simpleLogger.showLogName=true +org.slf4j.simpleLogger.showShortLogName=false +org.slf4j.simpleLogger.levelInBrackets=false + +# Default log level for all loggers +# Must be one of "trace", "debug", "info", "warn", "error" or "off" +# Will be changed by "--debug" command line option +org.slf4j.simpleLogger.defaultLogLevel=info + +# configure logging detail level for a single logger. +# Must be one of "trace", "debug", "info", "warn", "error" or "off" +#org.slf4j.simpleLogger.log.net.sourceforge.pmd.PMD=debug +#org.slf4j.simpleLogger.log.com.example.rules.MyRule=debug