Skip to content

Commit 2805ab3

Browse files
committed
Update logger documentation
1 parent 5e478fe commit 2805ab3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs-source/src/en/api/special-features/logger.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The usage method is as follows.
1414
loggerD(msg = "This is a log")
1515
```
1616

17-
At this point, `YukiHookAPI` will call `android.util.Log` and `XposedBridge.log` to print this log at the same time.
17+
At this ponit, `YukiHookAPI` will call `android.util.Log` and log function in (Xposed) Host environment to print this log at the same time.
1818

1919
The default `TAG` of the log is the value you set in `YukiHookLogger.Configs.tag`.
2020

@@ -36,7 +36,7 @@ The printed result is as shown below.
3636

3737
You can also use `LoggerType` to customize the type of log printing.
3838

39-
You can choose to use `android.util.Log` or `XposedBridge.log` to print logs.
39+
You can choose to use `android.util.Log` or the log function in the (Xposed) Host environment to print logs.
4040

4141
The default type is `LoggerType.BOTH`, which means that both methods are used to print logs.
4242

@@ -53,7 +53,7 @@ Or just use `XposedBridge.log` to print the log, this method can only be used in
5353
> The following example
5454
5555
```kotlin
56-
loggerD(tag = "YukiHookAPI", msg = "This is a log", type = LoggerType.XPOSEDBRIDGE)
56+
loggerD(tag = "YukiHookAPI", msg = "This is a log", type = LoggerType.XPOSED_ENVIRONMENT)
5757
```
5858

5959
If you want to intelligently distinguish the (Xposed) Host environment from the Module environment, you can write it in the following form.

docs-source/src/zh-cn/api/special-features/logger.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
loggerD(msg = "This is a log")
1515
```
1616

17-
此时,`YukiHookAPI` 会调用 `android.util.Log``XposedBridge.log` 同时打印这条日志
17+
此时,`YukiHookAPI` 会调用 `android.util.Log`(Xposed) 宿主环境中的日志功能同时打印这条日志
1818

1919
日志默认的 `TAG` 为你在 `YukiHookLogger.Configs.tag` 中设置的值。
2020

@@ -34,7 +34,7 @@ loggerD(tag = "YukiHookAPI", msg = "This is a log")
3434
[YukiHookAPI][D][宿主包名]--> This is a log
3535
```
3636

37-
你还可以使用 `LoggerType` 自定义日志打印的类型,可选择使用 `android.util.Log` 还是 `XposedBridge.log` 来打印日志
37+
你还可以使用 `LoggerType` 自定义日志打印的类型,可选择使用 `android.util.Log` 还是 (Xposed) 宿主环境中的日志功能来打印日志
3838

3939
默认类型为 `LoggerType.BOTH`,含义为同时使用这两个方法来打印日志。
4040

@@ -51,7 +51,7 @@ loggerD(tag = "YukiHookAPI", msg = "This is a log", type = LoggerType.LOGD)
5151
> 示例如下
5252
5353
```kotlin
54-
loggerD(tag = "YukiHookAPI", msg = "This is a log", type = LoggerType.XPOSEDBRIDGE)
54+
loggerD(tag = "YukiHookAPI", msg = "This is a log", type = LoggerType.XPOSED_ENVIRONMENT)
5555
```
5656

5757
若你想智能区分 (Xposed) 宿主环境与模块环境,可以写为如下形式。

0 commit comments

Comments
 (0)