summaryrefslogtreecommitdiffstats
path: root/src/main/properties/log4j2.properties
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/properties/log4j2.properties')
-rw-r--r--src/main/properties/log4j2.properties44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/main/properties/log4j2.properties b/src/main/properties/log4j2.properties
new file mode 100644
index 0000000..c4175b0
--- /dev/null
+++ b/src/main/properties/log4j2.properties
@@ -0,0 +1,44 @@
+status=error
+name=log4j2PropertiesConfig
+
+#
+# root level logging configuration
+#
+rootLogger.level=all
+rootLogger.appenderRefs=stdout
+rootLogger.appenderRef.stdout.ref=logToConsole
+
+#
+# configuration for console output
+#
+appenders=console
+
+appender.console.type=Console
+appender.console.name=logToConsole
+appender.console.layout.type=PatternLayout
+appender.console.layout.pattern=[%t] %-5p %F - %m%n
+appender.console.filter.threshold.type=ThresholdFilter
+appender.console.filter.threshold.level=info
+
+#
+# overwrite logging level for specific packages and classes
+#
+loggers=apacheDirectory,apacheMina,apacheThriftServer
+
+# overwrite logging level for org.apache.directory package
+logger.apacheDirectory.name=org.apache.directory
+logger.apacheDirectory.level=error
+logger.apacheDirectory.appenderRefs=stdout
+logger.apacheDirectory.appenderRef.stdout.ref=logToConsole
+
+# overwrite logging level for org.apache.mina package
+logger.apacheMina.name=org.apache.mina
+logger.apacheMina.level=error
+logger.apacheMina.appenderRefs=stdout
+logger.apacheMina.appenderRef.stdout.ref=logToConsole
+
+# overwrite logging level for org.apache.thrift.server.AbstractNonblockingServer class
+logger.apacheThriftServer.name=org.apache.thrift.server.AbstractNonblockingServer
+logger.apacheThriftServer.level=error
+logger.apacheThriftServer.appenderRefs=stdout
+logger.apacheThriftServer.appenderRef.stdout.ref=logToConsole