flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Balaji Rajagopalan <balaji.rajagopa...@olacabs.com>
Subject logback.xml and logback-yarn.xml rollingpolicy configuration
Date Tue, 19 Apr 2016 12:01:23 GMT
The are two files in the /usr/share/flink/conf directory, and I was trying
to do the rolling of application logs which goes to following directory in
task nodes.

out err

Changing the logback.xml and  logback-yarn.xml has no effect on the log
file size nor any rolling is happening. Any inputs please.

Here is the configuration I have, anything wrong with the config or the

   <appender name="FILE" class="ch.qos.logback.core.


    <rollingPolicy class="ch.qos.logback.core.rolling.

      <!-- daily rollover -->


      <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.

          <!-- or whenever the file size reaches 50MB -->



      <!-- keep 30 days' worth of history -->



            <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level
%logger{60} %X{sourceThread} - %msg%n</pattern>


    <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
            <pattern>%d{yyyy-MM-dd HH:mm:ss} %-5level %logger{60}
%X{sourceThread} - %msg%n</pattern>

    <logger name="ch.qos.logback" level="WARN" />
    <root level="INFO">
        <appender-ref ref="file"/>
        <appender-ref ref="console"/>

View raw message