Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-20526

Enable logback scan configuration by default

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      We should enable this by default which same as FLINK-20510

      This my logback.xml

      <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>
      

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xiaozilong xiaozilong

              Dates

              • Created:
                Updated:

                Issue deployment