flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-8357) enable rolling in default log settings
Date Wed, 31 Jan 2018 18:21:00 GMT

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

ASF GitHub Bot commented on FLINK-8357:
---------------------------------------

Github user XuMingmin commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5371#discussion_r165141492
  
    --- Diff: flink-dist/src/main/flink-bin/conf/logback.xml ---
    @@ -17,8 +17,14 @@
       -->
     
     <configuration>
    -    <appender name="file" class="ch.qos.logback.core.FileAppender">
    +    <appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
             <file>${log.file}</file>
    +		<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
    +			<!-- daily rollover -->
    +			<fileNamePattern>logFile.%d{yyyy-MM-dd}.log</fileNamePattern>
    --- End diff --
    
    ditto


> enable rolling in default log settings
> --------------------------------------
>
>                 Key: FLINK-8357
>                 URL: https://issues.apache.org/jira/browse/FLINK-8357
>             Project: Flink
>          Issue Type: Improvement
>          Components: Logging
>            Reporter: Xu Mingmin
>            Assignee: mingleizhang
>            Priority: Major
>             Fix For: 1.5.0
>
>
> The release packages uses {{org.apache.log4j.FileAppender}} for log4j and {{ch.qos.logback.core.FileAppender}}
for logback, which could results in very large log files. 
> For most cases, if not all, we need to enable rotation in a production cluster, and I
suppose it's a good idea to make rotation as default.



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

Mime
View raw message