You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Sendoh <un...@gmail.com> on 2016/04/19 11:21:00 UTC

Turn off logging in Flink

Hi,

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

and 

Configuration env_config = new Configuration();
env_config.setBoolean("printProgressDuringExecution", false);
StreamExecutionEnvironment env =
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 archive at Nabble.com.

Re: Turn off logging in Flink

Posted by Sendoh <un...@gmail.com>.
Thank you! Totally works.

Best,

Sendoh



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

Re: Turn off logging in Flink

Posted by Till Rohrmann <tr...@apache.org>.
Hi Sendoh,

you have to edit your log4j.properties file to set log4j.rootLogger=OFF 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 project which is
contained in the resources directory (this should be auto generated if
you’ve created your project with the quickstart archetypes).

Cheers,
Till
​

On Tue, Apr 19, 2016 at 11:21 AM, Sendoh <un...@gmail.com> wrote:

> Hi,
>
> Can I ask how to turn off Flink logging to avoid seeing INFO? I have tried
> StreamExecutionEnvironment env =
> StreamExecutionEnvironment.getExecutionEnvironment();
> env.getConfig().disableSysoutLogging();
> ....
> env.execute()
>
> and
>
> Configuration env_config = new Configuration();
> env_config.setBoolean("printProgressDuringExecution", false);
> StreamExecutionEnvironment env =
> 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 archive
> at Nabble.com.
>