From 885fb08ef2bc0072c646b751947f3578e4fa9682 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Fri, 30 Sep 2022 23:33:23 +0800 Subject: [PATCH] Added log data isolated illustrate in logger documentation --- docs-source/src/en/api/special-features/logger.md | 10 ++++++++++ docs-source/src/zh-cn/api/special-features/logger.md | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/docs-source/src/en/api/special-features/logger.md b/docs-source/src/en/api/special-features/logger.md index 4a7aef95..8194d06d 100644 --- a/docs-source/src/en/api/special-features/logger.md +++ b/docs-source/src/en/api/special-features/logger.md @@ -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. diff --git a/docs-source/src/zh-cn/api/special-features/logger.md b/docs-source/src/zh-cn/api/special-features/logger.md index f764f19e..06881ebf 100644 --- a/docs-source/src/zh-cn/api/special-features/logger.md +++ b/docs-source/src/zh-cn/api/special-features/logger.md @@ -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` 进行配置。