Hi, Flink uses slf4j and log4j for logging. You can override default log4j configuration programmatically. [1] Or you can use logback as a logging backend and override default logback configuration also. [2][3]
[1] http://stackoverflow.com/a/9003191 [2] http://ci.apache.org/projects/flink/flink-docs-master/internals/logging.html [3] http://stackoverflow.com/a/3810936 Regards, Chiwan Park > On Jun 19, 2015, at 8:05 PM, Juan Fumero > <juan.jose.fumero.alfo...@oracle.com> wrote: > > Hi, > is there any option (from API level) to redirect the log messages to a > file instead of stdout? > > Thanks > > > log4j:WARN No appenders could be found for logger > (org.apache.flink.api.java.ExecutionEnvironment). > log4j:WARN Please initialize the log4j system properly. > log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for > more info. > 06/19/2015 12:14:12 Job execution switched to status RUNNING. > .... > 06/19/2015 12:14:12 DataSink (collect() sink)(1/1) switched to > DEPLOYING > 06/19/2015 12:14:12 DataSink (collect() sink)(1/1) switched to > RUNNING > 06/19/2015 12:14:12 DataSink (collect() sink)(1/1) switched to > FINISHED > 06/19/2015 12:14:12 Job execution switched to status FINISHED. > >