You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Flink Jira Bot (Jira)" <ji...@apache.org> on 2022/07/05 22:38:00 UTC

[jira] [Updated] (FLINK-24510) Fix the duplicate log output of libraries/connectors,when logback is used

     [ https://issues.apache.org/jira/browse/FLINK-24510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Flink Jira Bot updated FLINK-24510:
-----------------------------------
    Labels: auto-deprioritized-major pull-request-available stale-minor  (was: auto-deprioritized-major pull-request-available)

I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help the community manage its development. I see this issues has been marked as Minor but is unassigned and neither itself nor its Sub-Tasks have been updated for 180 days. I have gone ahead and marked it "stale-minor". If this ticket is still Minor, please either assign yourself or give an update. Afterwards, please remove the label or in 7 days the issue will be deprioritized.


> Fix the duplicate log output of libraries/connectors,when logback is used
> -------------------------------------------------------------------------
>
>                 Key: FLINK-24510
>                 URL: https://issues.apache.org/jira/browse/FLINK-24510
>             Project: Flink
>          Issue Type: Bug
>          Components: Deployment / Scripts
>    Affects Versions: 1.14.0
>            Reporter: xiangqiao
>            Priority: Minor
>              Labels: auto-deprioritized-major, pull-request-available, stale-minor
>         Attachments: image-2021-10-12-10-52-22-389.png
>
>
> When logback is used, the logs of libraries / connectors are output repeatedly.
> !image-2021-10-12-10-52-22-389.png!
>  
> By default, *appenders are cumulative*: a logger will log to the appenders attached to itself (if any) as well as all the appenders attached to its ancestors. Thus, attaching the same appender to multiple loggers will cause logging output to be duplicated.
> [http://logback.qos.ch/manual/configuration.html#cumulative]
>  
> We can solve this problem in the following ways:
> {code:java}
> <!-- The following lines keep the log level of common libraries/connectors on
>      log level INFO. The root logger does not override this. You have to manually
>      change the log levels here. -->
> <logger name="akka" level="INFO"/>
> <logger name="org.apache.kafka" level="INFO"/>
> <logger name="org.apache.hadoop" level="INFO"/>
> <logger name="org.apache.zookeeper" level="INFO"/>
> <!-- Suppress the irrelevant (wrong) warnings from the Netty channel handler -->
> <logger name="org.jboss.netty.channel.DefaultChannelPipeline" level="ERROR"/>
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)