My Spring Cloud Data Flow deleted log file in folder after I stopped it. Why SCDF does that and How can I keep these log files?
Asked
Active
Viewed 725 times
1 Answers
2
You can customize the logging configuration in the logback config file and pass it as a configuration properties for the SCDF server. Assuming you are trying this with the local
data flow server, you can refer this documentation for logback configuration.

Ilayaperumal Gopinathan
- 4,099
- 1
- 13
- 12
-
How about the log of each task/job ? – Zach Pham Jan 09 '20 at 06:03
-
The logs of the applications are managed by the deployer implementation. Also, it is exposed by the `/runtime/apps` endpoint as well as the `Runtime` tab in the SCDF Dashboard. – Ilayaperumal Gopinathan Jan 09 '20 at 06:42
-
how about "deleteFilesOnExit". It's default value is true? Does it make the log file gone after stop SCDF? – Zach Pham Jan 09 '20 at 07:06
-
Yes, by default this `local` deployer property is set to `true` and it will enable the stdout, stderr directories to be deleted upon undeploy operation. – Ilayaperumal Gopinathan Jan 09 '20 at 09:58
-
Could you give me the properties to set it into false? – Zach Pham Jan 09 '20 at 10:55