From 0c1a2dc585ea0f3326181741e1a4cbbae534532b Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Thu, 8 Jul 2021 15:55:17 +0200 Subject: [PATCH] Create log4j.properties --- resources/log4j.properties | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 resources/log4j.properties diff --git a/resources/log4j.properties b/resources/log4j.properties new file mode 100644 index 0000000..f7125ac --- /dev/null +++ b/resources/log4j.properties @@ -0,0 +1,12 @@ +log4j.rootLogger=DEBUG, R +#Output to the file, and a new file is generated when the file size reaches the specified size +log4j.appender.R=org.apache.log4j.RollingFileAppender +#Output to the console +#log4j.appender.stdout=org.apache.log4j.ConsoleAppender +#log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.R.File=./log/logger1.log + +log4j.appender.R.MaxBackupIndex=20 + +log4j.appender.R.layout=org.apache.log4j.PatternLayout +log4j.appender.R.layout.ConversionPattern=[%d][%p][%c] %m%n \ No newline at end of file