[ 
https://issues.apache.org/jira/browse/FLINK-6019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16501463#comment-16501463
 ] 

Luke Hutchison commented on FLINK-6019:
---------------------------------------

PS this is especially confusing because the current documentation on logging 
for Flink talks about configuring log4j, then it talks about configuring 
logback. But it never mentions that Flink internally uses the slf4j API for 
logging. It also doesn't point out that you don't need to configure both log4j 
and logback, you can pick just one of them as the logging backend. Then you 
need to set up a bridge from slf4j to whichever logging backend you chose. If 
you pick logback as the backend though, then you'll also need to bridge log4j 
to slf4j (which will then be bridged to logback), so that all the logs from any 
log4j libraries in the classpath will be forwarded through to the single 
logback sink.

> Some log4j messages do not have a loglevel field set, so they can't be 
> suppressed
> ---------------------------------------------------------------------------------
>
>                 Key: FLINK-6019
>                 URL: https://issues.apache.org/jira/browse/FLINK-6019
>             Project: Flink
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.0
>         Environment: Linux
>            Reporter: Luke Hutchison
>            Priority: Major
>
> Some of the log messages do not appear to have a loglevel value set, so they 
> can't be suppressed by setting the log4j level to WARN. There's this line at 
> the beginning which doesn't even have a timestamp:
> {noformat}
> Connected to JobManager at Actor[akka://flink/user/jobmanager_1#1844933939]
> {noformat}
> And then there are numerous lines like this, missing an "INFO" field:
> {noformat}
> 03/10/2017 00:01:14   Job execution switched to status RUNNING.
> 03/10/2017 00:01:14   DataSource (at readTable(DBTableReader.java:165) 
> (org.apache.flink.api.java.io.PojoCsvInputFormat))(1/8) switched to SCHEDULED 
> 03/10/2017 00:01:14   DataSink (count())(1/8) switched to SCHEDULED 
> 03/10/2017 00:01:14   DataSink (count())(3/8) switched to DEPLOYING 
> 03/10/2017 00:01:15   DataSink (count())(3/8) switched to RUNNING 
> 03/10/2017 00:01:17   DataSink (count())(6/8) switched to FINISHED 
> 03/10/2017 00:01:17   DataSource (at readTable(DBTableReader.java:165) 
> (org.apache.flink.api.java.io.PojoCsvInputFormat))(6/8) switched to FINISHED 
> 03/10/2017 00:01:17   Job execution switched to status FINISHED.
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to