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>

Reply via email to