You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by se...@apache.org on 2018/05/03 13:02:29 UTC

[2/3] flink git commit: [hotfix] [tests] Update log4j-test.properties

[hotfix] [tests] Update log4j-test.properties

Brings the logging definition in sync with other projects.
Updates the classname for the suppressed logger in Netty to account for the new
shading model introduced in Flink 1.4.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/38a4cd89
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/38a4cd89
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/38a4cd89

Branch: refs/heads/release-1.5
Commit: 38a4cd892aa851dbbeb54d1a6db957a6786fb563
Parents: e06d36a
Author: Stephan Ewen <se...@apache.org>
Authored: Mon Apr 30 09:55:50 2018 +0200
Committer: Stephan Ewen <se...@apache.org>
Committed: Thu May 3 11:16:25 2018 +0200

----------------------------------------------------------------------
 .../src/test/resources/log4j-test.properties    | 28 +++++++-------------
 1 file changed, 10 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/38a4cd89/flink-runtime/src/test/resources/log4j-test.properties
----------------------------------------------------------------------
diff --git a/flink-runtime/src/test/resources/log4j-test.properties b/flink-runtime/src/test/resources/log4j-test.properties
index 7ba1633..d7ef9d4 100644
--- a/flink-runtime/src/test/resources/log4j-test.properties
+++ b/flink-runtime/src/test/resources/log4j-test.properties
@@ -16,23 +16,15 @@
 # limitations under the License.
 ################################################################################
 
-log4j.rootLogger=OFF, console
+# Set root logger level to OFF to not flood build logs
+# set manually to INFO for debugging purposes
+log4j.rootLogger=OFF, testlogger
 
-# -----------------------------------------------------------------------------
-# Console (use 'console')
-# -----------------------------------------------------------------------------
-log4j.appender.console=org.apache.log4j.ConsoleAppender
-log4j.appender.console.layout=org.apache.log4j.PatternLayout
-log4j.appender.console.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p %-60c %x - %m%n
+# testlogger is set to be a ConsoleAppender.
+log4j.appender.testlogger=org.apache.log4j.ConsoleAppender
+log4j.appender.testlogger.target=System.err
+log4j.appender.testlogger.layout=org.apache.log4j.PatternLayout
+log4j.appender.testlogger.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
 
-# -----------------------------------------------------------------------------
-# File (use 'file')
-# -----------------------------------------------------------------------------
-log4j.appender.file=org.apache.log4j.FileAppender
-log4j.appender.file.file=${log.dir}/${mvn.forkNumber}.log
-log4j.appender.file.append=false
-log4j.appender.file.layout=org.apache.log4j.PatternLayout
-log4j.appender.file.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p %-60c %x - %m%n
-
-# suppress the irrelevant (wrong) warnings from the netty channel handler
-log4j.logger.org.jboss.netty.channel.DefaultChannelPipeline=ERROR, console
+# Suppress the irrelevant (wrong) warnings from the Netty channel handler
+log4j.logger.org.apache.flink.shaded.akka.org.jboss.netty.channel.DefaultChannelPipeline=ERROR, testlogger