You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "vinoyang (JIRA)" <ji...@apache.org> on 2018/06/06 06:55:00 UTC

[jira] [Assigned] (FLINK-9536) Rolling logs using log4j.properties, prevents them from showing on the UI.

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

vinoyang reassigned FLINK-9536:
-------------------------------

    Assignee: vinoyang

> Rolling logs using log4j.properties, prevents them from showing on the UI. 
> ---------------------------------------------------------------------------
>
>                 Key: FLINK-9536
>                 URL: https://issues.apache.org/jira/browse/FLINK-9536
>             Project: Flink
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.4.2
>            Reporter: SUBRAMANYA SURESH
>            Assignee: vinoyang
>            Priority: Major
>
> Based on this https://issues.apache.org/jira/browse/FLINK-9471 we are forced to keep INFO for packages like org.apache.flink.runtime.executiongraph, despite their verbosity. An attempt to roll these logs, so that they do not fill the disk, leads to them not showing up in the UI (JobManager logs or TaskManager logs). The log4j.properties attempted is below. 
>  log4j.rootLogger=WARN, SizeBasedRollingFile
>  log4j.logger.org.apache.flink=INFO
>  # Suppress the irrelevant (wrong) warnings from the Netty channel handler
>  log4j.logger.org.apache.flink.shaded.akka.org.jboss.netty.channel.DefaultChannelPipeline=ERROR
>  log4j.logger.com.myPackage=INFO, DateBasedRollingFile
>  log4j.appender.SizeBasedRollingFile=org.apache.log4j.RollingFileAppender
>  log4j.appender.SizeBasedRollingFile.File=${log.file}
>  log4j.appender.SizeBasedRollingFile.maxFileSize=10000
>  log4j.appender.SizeBasedRollingFile.maxBackupIndex=10
>  log4j.appender.SizeBasedRollingFile.layout=org.apache.log4j.PatternLayout
>  log4j.appender.SizeBasedRollingFile.layout.ConversionPattern=%d\{yyyy-MM-dd HH:mm:ss} %-5p %-60c - %m%n
>  
> log4j.appender.DateBasedRollingFile=org.apache.log4j.DailyRollingFileAppender
>  log4j.appender.DateBasedRollingFile.File=${log.file}-application
>  log4j.appender.DateBasedRollingFile.DatePattern='.'yyyy-MM-dd-HH-mm-ss
>  log4j.appender.DateBasedRollingFile.layout=org.apache.log4j.PatternLayout
>  log4j.appender.DateBasedRollingFile.layout.ConversionPattern=%d\{yyyy-MM-dd HH:mm:ss} %-5p %-60c - %m%n



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