Return-Path: X-Original-To: apmail-flink-user-archive@minotaur.apache.org Delivered-To: apmail-flink-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0B74719E99 for ; Tue, 19 Apr 2016 09:59:53 +0000 (UTC) Received: (qmail 38081 invoked by uid 500); 19 Apr 2016 09:59:52 -0000 Delivered-To: apmail-flink-user-archive@flink.apache.org Received: (qmail 37980 invoked by uid 500); 19 Apr 2016 09:59:52 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 37971 invoked by uid 99); 19 Apr 2016 09:59:52 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2016 09:59:52 +0000 Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id B0EBE1A012C for ; Tue, 19 Apr 2016 09:59:51 +0000 (UTC) Received: by mail-wm0-f54.google.com with SMTP id n3so20439956wmn.0 for ; Tue, 19 Apr 2016 02:59:51 -0700 (PDT) X-Gm-Message-State: AOPr4FVNUE5fcSldWbo9isJjU5VNa62m8vO7ABQyulQ6Bss71mHvDVTs6SocnZr3PcC6+/iQhxWiewlzFzbUfA== MIME-Version: 1.0 X-Received: by 10.28.138.196 with SMTP id m187mr2560954wmd.61.1461059990324; Tue, 19 Apr 2016 02:59:50 -0700 (PDT) Received: by 10.194.42.194 with HTTP; Tue, 19 Apr 2016 02:59:50 -0700 (PDT) In-Reply-To: <1461057660410-6196.post@n4.nabble.com> References: <1461057660410-6196.post@n4.nabble.com> Date: Tue, 19 Apr 2016 11:59:50 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Turn off logging in Flink From: Till Rohrmann To: user@flink.apache.org Content-Type: multipart/alternative; boundary=001a1144215ab81b990530d3894c --001a1144215ab81b990530d3894c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Sendoh, you have to edit your log4j.properties file to set log4j.rootLogger=3DOFF i= n order to turn off the logger. Depending on how you run Flink and where you wanna turn off the logging, you either have to edit the log4j.properties file in the FLINK_HOME/conf directory or the in your project which is contained in the resources directory (this should be auto generated if you=E2=80=99ve created your project with the quickstart archetypes). Cheers, Till =E2=80=8B On Tue, Apr 19, 2016 at 11:21 AM, Sendoh wrote: > Hi, > > Can I ask how to turn off Flink logging to avoid seeing INFO? I have trie= d > StreamExecutionEnvironment env =3D > StreamExecutionEnvironment.getExecutionEnvironment(); > env.getConfig().disableSysoutLogging(); > .... > env.execute() > > and > > Configuration env_config =3D new Configuration(); > env_config.setBoolean("printProgressDuringExecution", false); > StreamExecutionEnvironment env =3D > StreamExecutionEnvironment.createLocalEnvironment(4, env_config); > .... > env.execute(); > > Do you have any other suggestions? > > Best, > > Sendoh > > > > -- > View this message in context: > http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Turn-= off-logging-in-Flink-tp6196.html > Sent from the Apache Flink User Mailing List archive. mailing list archiv= e > at Nabble.com. > --001a1144215ab81b990530d3894c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hi Sendoh,

you have to edit your log4j.pro= perties file to set log4j.rootLogger=3DOFF in order= to turn off the logger. Depending on how you run Flink and where you wanna= turn off the logging, you either have to edit the log4j.properties file in= the FLINK_HOME/conf directory or the in your proje= ct which is contained in the resources directory (this should be auto gener= ated if you=E2=80=99ve created your project with the quickstart archetypes)= .

Cheers,
Till

=E2=80=8B

On Tue, Apr 19, 2016 at 11:21 AM, = Sendoh <unicorn.banachi@gmail.com> wrote:
Hi,

Can I ask how to turn off Flink logging to avoid seeing INFO? I have tried<= br> StreamExecutionEnvironment env =3D
StreamExecutionEnvironment.getExecutionEnvironment();
env.getConfig().disableSysoutLogging();
....
env.execute()

and

Configuration env_config =3D new Configuration();
env_config.setBoolean("printProgressDuringExecution", false);
StreamExecutionEnvironment env =3D
StreamExecutionEnvironment.createLocalEnvironment(4, env_config);
....
env.execute();

Do you have any other suggestions?

Best,

Sendoh



--
View this message in context: http://apache-flink-user-mailing-list-ar= chive.2336050.n4.nabble.com/Turn-off-logging-in-Flink-tp6196.html
Sent from the Apache Flink User Mailing List archive. mailing list archive = at Nabble.com.

--001a1144215ab81b990530d3894c--