Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 879 Bytes

log.md

File metadata and controls

19 lines (10 loc) · 879 Bytes

日志

JD Chain使用Log4j2配置日志输出

Gateway

网关日志默认配置文件为config/log4j2-gw.xml,可修改启动脚本(bin/startup.sh)中-Djdchain.log=$APP_HOME/logs-Dlogging.config=file:$APP_HOME/config/log4j2-gw.xml两个选项修改日志配置。

启动过程中会有少量控制台输出bin/peer.out,注意观察启动时是否有错误信息。

运行中日志根据默认配置会输出到logs目录中。

Peer

节点日志默认配置文件为config/log4j2-peer.xml,可修改启动脚本(bin/peer-startup.sh)中-Djdchain.log=$APP_HOME/logs-Dlogging.config=file:$APP_HOME/config/log4j2-peer.xml两个选项修改日志配置。

启动过程中会有少量控制台输出bin/peer.out,注意观察启动时是否有错误信息。

运行中日志根据默认配置会输出到logs目录中。