From 4670361507b063b6c48c84d94b9c892d9577fbc0 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Tue, 4 Oct 2022 06:00:51 +0800 Subject: [PATCH] Added obtainLoggerInMemoryData function usage in logger documentation --- docs-source/src/en/api/special-features/logger.md | 2 ++ docs-source/src/zh-cn/api/special-features/logger.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs-source/src/en/api/special-features/logger.md b/docs-source/src/en/api/special-features/logger.md index 8194d06d..5ce4780a 100644 --- a/docs-source/src/en/api/special-features/logger.md +++ b/docs-source/src/en/api/special-features/logger.md @@ -173,6 +173,8 @@ 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). +If you only want to get log data in real time through Module App or Host App, Please refer to the optional solution [YukiHookDataChannel.obtainLoggerInMemoryData](../public/com/highcapable/yukihookapi/hook/xposed/channel/YukiHookDataChannel#obtainloggerinmemorydata-method) method. + ::: You can also use `YukiHookLogger.Configs.elements` to customize the elements that debug logs display externally. 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 06881ebf..fa6e4f35 100644 --- a/docs-source/src/zh-cn/api/special-features/logger.md +++ b/docs-source/src/zh-cn/api/special-features/logger.md @@ -167,6 +167,8 @@ YukiHookLogger.inMemoryData.forEach { 你只能在对应的进程中获取对应的日志数据,如果你需要在任何地方实时得到这些日志数据,请参考 [Xposed 模块与宿主通讯桥](xposed-channel)、[注册模块 Activity](host-inject#注册模块-activity)。 +如果你只想通过模块或宿主来实时得到日志数据,请参考可选方案 [YukiHookDataChannel.obtainLoggerInMemoryData](../public/com/highcapable/yukihookapi/hook/xposed/channel/YukiHookDataChannel#obtainloggerinmemorydata-method) 方法。 + ::: 你还可以使用 `YukiHookLogger.Configs.elements` 自定义调试日志对外显示的元素。