如何在Spring Cloud DataFlow中设置日志方向

问题描述 投票:0回答:2

我已经设置了

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

在application.properties中定义日志文件夹。

但是,它不起作用,我启动时的任务日志写在java.io.tmpdir(C:/..../ temp /)。

我正在使用spring-cloud-dataflow-server-core版本2.3.0.RELEASE我是否需要将这些配置放在dataflow-server.yml中?如何配置SCDF的日志文件夹及其任务?

spring-cloud-dataflow
2个回答
1
投票

workingDirectoriesRoot属性是local部署程序属性,而不是应用程序属性。因此,启动任务时需要传递它。

task launch <task-name> --properties "deployer.<task-name>.local.workingDirectoriesRoot=D:\\Deploy"


0
投票

我们刚刚为Windows添加了一些测试,并注意到使用驱动器号时在Windows上实际可用的正确格式(假设任务名称为时间戳):

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

[想想在春季世界中绑定是如何从Stringjava.nio.file.Path的。对于那些有兴趣了解更多的人,它是使用PathEditor的spring core的Paths.get(URI),因此需要file:

© www.soinside.com 2019 - 2024. All rights reserved.