我要更改一个节点的日志配置,为此我编写了一个自定义xml文件,其中我更改了与某些特定模块和滚动策略相关的一些配置,并且正在使用命令:java -Dlog4j.configurationFile=custom-log.xml -jar corda.jar
这对于我的自定义配置可以正常工作,但是当我在node.conf
的systemProperties部分中将相同的配置设置为:
systemProperties = {
-Dlog4j.configurationFile = custom-log.xml
}
它不遵循我的自定义日志记录配置。你能帮我吗?
答案 0 :(得分:0)
代替
systemProperties = {
-Dlog4j.configurationFile = custom-log.xml
}
通过它:
systemProperties = {
log4j.configurationFile = custom-log.xml
}
-D自动添加