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 2021/10/30 22:40:01 UTC

[jira] [Updated] (FLINK-20526) Enable logback scan configuration by default

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

Flink Jira Bot updated FLINK-20526:
-----------------------------------
    Labels: auto-deprioritized-major stale-minor  (was: auto-deprioritized-major)

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.


> Enable logback scan configuration by default
> --------------------------------------------
>
>                 Key: FLINK-20526
>                 URL: https://issues.apache.org/jira/browse/FLINK-20526
>             Project: Flink
>          Issue Type: Improvement
>          Components: Runtime / Configuration
>            Reporter: xiaozilong
>            Priority: Minor
>              Labels: auto-deprioritized-major, stale-minor
>
> We should enable this by default which same as FLINK-20510
> This my logback.xml
> {code:java}
> <configuration scan="true" scanPeriod="60 seconds">
>    <appender name="Rolling_File" class="ch.qos.logback.core.rolling.RollingFileAppender">
>       <file>${log.file}</file>
>       <append>true</append>
>       <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
>          <fileNamePattern>${log.file}.%d{yyyy-MM-dd}.%i</fileNamePattern>
>          <minIndex>1</minIndex>
>          <maxIndex>10</maxIndex>
>          <maxFileSize>128MB</maxFileSize>
>       </rollingPolicy>
>       <encoder>
>          <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{60} %X{sourceThread} - %msg%n</pattern>
>       </encoder>
>    </appender>
>    <!-- This affects logging for both user code and Flink -->
>    <root level="INFO">
>       <appender-ref ref="Rolling_File"/>
>    </root>
>    <!-- Uncomment this if you want to only change Flink's logging -->
>    <logger name="org.apache.flink" level="INFO"/>
>    <!-- 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.apache.flink.shaded.akka.org.jboss.netty.channel.DefaultChannelPipeline" level="ERROR">
>       <appender-ref ref="Rolling_File"/>
>    </logger>
> </configuration>
> {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)