flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Soheil Pourbafrani <soheil.i...@gmail.com>
Subject Writing Flink logs into specific file
Date Thu, 18 Jul 2019 18:03:09 GMT
Hi,

When we run the Flink application some logs will be generated about the
running, in both local and distributed environment. I was wondering if is
it possible to save logs into a specified file?

I put the following file in the resource directory of the project but it
has no effect:
logback.xml

<configuration>
    <appender name="file" class="ch.qos.logback.core.FileAppender">
        <file>flink_logs.txt</file>
        <append>false</append>
        <encoder>
            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{60}
%X{sourceThread} - %msg%n</pattern>
        </encoder>
    </appender>

    <root level="INFO">
        <appender-ref ref="file"/>
    </root></configuration>

Mime
View raw message