Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#163] improve(all): add log4j2 configuration file to set log level and log file (#164)

Qi Yu6ce5be467a09
diff --git a/core/src/test/resources/log4j2.properties b/core/src/test/resources/log4j2.properties
new file mode 100644
index 0000000000..23c324ddda
--- /dev/null
+++ b/core/src/test/resources/log4j2.properties
@@ -0,0 +1,24 @@
+#
+# Copyright 2023 Datastrato.
+# This software is licensed under the Apache License version 2.
+#
+
+## Anyone who wants to want to output in test can copy this file to the related module path: test/resources/log4j2.xml
+status = error
+name = PropertiesConfig
+
+filters = threshold
+
+filter.threshold.type = ThresholdFilter
+filter.threshold.level = debug
+
+appenders = console
+
+appender.console.type = Console
+appender.console.name = STDOUT
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
+
+rootLogger.level = debug
+rootLogger.appenderRefs = stdout
+rootLogger.appenderRef.stdout.ref = STDOUT
\ No newline at end of file