From 7190b504011dba9cc6c48a5333431a7943e22e0c Mon Sep 17 00:00:00 2001 From: shawn_he Date: Wed, 31 Aug 2022 16:09:32 +0800 Subject: [PATCH] update doc Signed-off-by: shawn_he --- .../reference/apis/js-apis-hilog.md | 2 +- .../reference/apis/js-apis-hitracemeter.md | 2 +- .../reference/apis/js-apis-logs.md | 19 ++----------------- 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-hilog.md b/en/application-dev/reference/apis/js-apis-hilog.md index 67abd14113..fd44ed62b3 100644 --- a/en/application-dev/reference/apis/js-apis-hilog.md +++ b/en/application-dev/reference/apis/js-apis-hilog.md @@ -1,6 +1,6 @@ # HiLog -The HiLog subsystem allows your applications or services to output logs based on the specified type, level, and format string. Such logs help you learn the running status of applications and better debug programs. +The HiLog module allows your applications or services to output logs based on the specified type, level, and format string. Such logs help you learn the running status of applications and better debug programs. > **NOTE**
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. diff --git a/en/application-dev/reference/apis/js-apis-hitracemeter.md b/en/application-dev/reference/apis/js-apis-hitracemeter.md index fa27141d00..04a9db2a0e 100644 --- a/en/application-dev/reference/apis/js-apis-hitracemeter.md +++ b/en/application-dev/reference/apis/js-apis-hitracemeter.md @@ -1,6 +1,6 @@ # Performance Tracing -This module provides the functions of tracing service processes and monitoring the system performance. It provides the data needed for hiTraceMeter to carry out performance analysis. +The Performance Tracing module provides the functions of tracing service processes and monitoring the system performance. It provides the data needed for hiTraceMeter to carry out performance analysis. > **NOTE** > diff --git a/en/application-dev/reference/apis/js-apis-logs.md b/en/application-dev/reference/apis/js-apis-logs.md index 6140b91403..c72c204be0 100644 --- a/en/application-dev/reference/apis/js-apis-logs.md +++ b/en/application-dev/reference/apis/js-apis-logs.md @@ -1,6 +1,6 @@ # Log -This module provides basic log printing capabilities and supports log printing by log level. +The Log module provides basic log printing capabilities and supports log printing by log level. If you want to use more advanced log printing services, for example, filtering logs by the specified ID, you are advised to use [`@ohos.hilog`](js-apis-hilog.md). @@ -12,22 +12,7 @@ If you want to use more advanced log printing services, for example, filtering l debug(message: string): void -Prints debug logs. - -**System capability**: SystemCapability.ArkUI.ArkUI.Full - -**Parameters** - -| Name | Type | Mandatory | Description | -| ------- | ------ | ---- | ----------- | -| message | string | Yes | Text to print.| - - -## console.log - -log(message: string): void - -Prints debug logs. +Prints debug-level logs. **System capability**: SystemCapability.ArkUI.ArkUI.Full -- GitLab