Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 6c49c1e

Browse files
committed
[doc][*][0.2.2]: update README.md about bbc log
1 parent e759529 commit 6c49c1e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,24 @@ systemctl status plugin-server.service
202202
203203
日志文件存储在`log`目录之下。
204204
205+
## 插件
206+
207+
将你的插件放在配置`pluginserver.plugin.repo`的路径之下,然后启动插件服务即可加载所有插件。
208+
209+
插件运行中使用`BBCLogger`打印的日志,比如[这里](https://github.com/AntChainOpenLabs/AntChainBridgePluginSDK/blob/604c5b97305ee77cfa1e14454f5b99f1f905f6ea/pluginset/ethereum/offchain-plugin/src/main/java/com/alipay/antchain/bridge/plugins/ethereum/EthereumBBCService.java#L74),插件服务将会按照插件的`product`和BBCService对象的`domain`,打印到不同文件`logs/bbc/${product}/${domain}`,比如下面`product`为`simple-ethereum`和域名为`domainB`的日志文件。
210+
211+
```
212+
logs/
213+
├── antchain-bridge-pluginserver
214+
│   ├── application.log
215+
│   └── error.log
216+
└── bbc
217+
└── simple-ethereum
218+
└── domainB.log
219+
220+
3 directories, 3 files
221+
```
222+
205223
## 运行测试
206224
207225
在运行测试之前,请使用`ps-bootstrap/src/main/resources/scripts/init_tls_certs.sh`生成证书,并将`server.key`和`server.crt` 放到`ps-bootstrap/src/test/resources`之下,运行下述命令即可运行测试用例:

0 commit comments

Comments
 (0)