Hi Soehil,

There is a logback.xml in the conf directory. You can modify that and see
if it works. For more information about logging please check
https://ci.apache.org/projects/flink/flink-docs-stable/monitoring/logging.html

Soheil Pourbafrani <soheil.i...@gmail.com> 于2019年7月19日周五 上午2:03写道:

> 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