From aafa579402c4e1b960e929d1b449505ba820a60a Mon Sep 17 00:00:00 2001 From: Stephan Ewen Date: Wed, 10 May 2017 16:39:53 +0200 Subject: [PATCH] [hotfix] [gelly] Support log output when running examples in the IDE This adds the dependencies / config files necessary for log output --- flink-libraries/flink-gelly-examples/pom.xml | 15 ++++++++++ .../src/main/resources/log4j.properties | 23 +++++++++++++++ .../src/main/resources/logback.xml | 29 +++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 flink-libraries/flink-gelly-examples/src/main/resources/log4j.properties create mode 100644 flink-libraries/flink-gelly-examples/src/main/resources/logback.xml diff --git a/flink-libraries/flink-gelly-examples/pom.xml b/flink-libraries/flink-gelly-examples/pom.xml index 6fb0979d657..009781f1127 100644 --- a/flink-libraries/flink-gelly-examples/pom.xml +++ b/flink-libraries/flink-gelly-examples/pom.xml @@ -75,6 +75,21 @@ compile + + + + + org.slf4j + slf4j-log4j12 + compile + + + + log4j + log4j + compile + + diff --git a/flink-libraries/flink-gelly-examples/src/main/resources/log4j.properties b/flink-libraries/flink-gelly-examples/src/main/resources/log4j.properties new file mode 100644 index 00000000000..da32ea0f44d --- /dev/null +++ b/flink-libraries/flink-gelly-examples/src/main/resources/log4j.properties @@ -0,0 +1,23 @@ +################################################################################ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +log4j.rootLogger=INFO, 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 diff --git a/flink-libraries/flink-gelly-examples/src/main/resources/logback.xml b/flink-libraries/flink-gelly-examples/src/main/resources/logback.xml new file mode 100644 index 00000000000..95f2d041939 --- /dev/null +++ b/flink-libraries/flink-gelly-examples/src/main/resources/logback.xml @@ -0,0 +1,29 @@ + + + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{60} %X{sourceThread} - %msg%n + + + + + + + \ No newline at end of file -- GitLab