Added obtainLoggerInMemoryData function usage in logger documentation

This commit is contained in:
2022-10-04 06:00:51 +08:00
parent 2fb96f3bf7
commit 4670361507
2 changed files with 4 additions and 0 deletions

View File

@@ -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 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. You can also use `YukiHookLogger.Configs.elements` to customize the elements that debug logs display externally.

View File

@@ -167,6 +167,8 @@ YukiHookLogger.inMemoryData.forEach {
你只能在对应的进程中获取对应的日志数据,如果你需要在任何地方实时得到这些日志数据,请参考 [Xposed 模块与宿主通讯桥](xposed-channel)、[注册模块 Activity](host-inject#注册模块-activity)。 你只能在对应的进程中获取对应的日志数据,如果你需要在任何地方实时得到这些日志数据,请参考 [Xposed 模块与宿主通讯桥](xposed-channel)、[注册模块 Activity](host-inject#注册模块-activity)。
如果你只想通过模块或宿主来实时得到日志数据,请参考可选方案 [YukiHookDataChannel.obtainLoggerInMemoryData](../public/com/highcapable/yukihookapi/hook/xposed/channel/YukiHookDataChannel#obtainloggerinmemorydata-method) 方法。
::: :::
你还可以使用 `YukiHookLogger.Configs.elements` 自定义调试日志对外显示的元素。 你还可以使用 `YukiHookLogger.Configs.elements` 自定义调试日志对外显示的元素。