Added log data isolated illustrate in logger documentation

This commit is contained in:
2022-09-30 23:33:23 +08:00
parent f9743f75be
commit 885fb08ef2
2 changed files with 18 additions and 0 deletions

View File

@@ -165,6 +165,16 @@ YukiHookLogger.inMemoryData.forEach {
The above features require `YukiHookLogger.Configs.isRecord` to be enabled.
::: danger
The obtained log data is isolated from each other in the Host App and the Module App's process.
You can only get the corresponding log data in the corresponding process.
If you need to get these log data in real time anywhere, please refer to [Xposed Module and Host Channel](xposed-channel), [Register Module App's Activity](host-inject#register-module-app-s-activity).
:::
You can also use `YukiHookLogger.Configs.elements` to customize the elements that debug logs display externally.
This function requires `YukiHookAPI.Configs` to be configured in `onInit` of the Hook entry class.

View File

@@ -161,6 +161,14 @@ YukiHookLogger.inMemoryData.forEach {
以上功能需要启用 `YukiHookLogger.Configs.isRecord`。
::: danger
获取到的日志数据在 Hook APP (宿主) 及模块进程中是相互隔离的。
你只能在对应的进程中获取对应的日志数据,如果你需要在任何地方实时得到这些日志数据,请参考 [Xposed 模块与宿主通讯桥](xposed-channel)、[注册模块 Activity](host-inject#注册模块-activity)。
:::
你还可以使用 `YukiHookLogger.Configs.elements` 自定义调试日志对外显示的元素。
此功能需要在 Hook 入口类的 `onInit` 中对 `YukiHookAPI.Configs` 进行配置。