Search code examples
spring-cloud-dataflow

How to set log direction in Spring Cloud DataFlow


I have set

spring.cloud.deployer.local.workingDirectoriesRoot=D:\\Deploy

in application.properties to define log folder.

However, It does not works, the log of task when I launched is written on java.io.tmpdir (C:/..../temp/).

I am using spring-cloud-dataflow-server-core version 2.3.0.RELEASE Does I need to put these config in dataflow-server.yml ? How can I configure the log folder of SCDF and their tasks?


Solution

  • We just added some tests for windows and noticed that correct format (assuming task name is timestamp) which actually works on windows when using drive letter is:

    deployer.timestamp.local.working-directories-root=file:/C:/tmp
    

    Think is how in a spring world binding works from String to java.nio.file.Path. For those interested to know more, It's spring core's PathEditor which uses Paths.get(URI), thus need for file:.