diff --git a/en/application-dev/dfx/hiappevent-overview.md b/en/application-dev/dfx/hiappevent-overview.md index 088f3624b0c9638dd5137e1460b3cc832c290de9..2e54f28d8a69623accc2aff1b8dc96f30045f8ed 100644 --- a/en/application-dev/dfx/hiappevent-overview.md +++ b/en/application-dev/dfx/hiappevent-overview.md @@ -1,8 +1,8 @@ # Overview of Application Event Logging -HiAppEvent provides event logging APIs for applications to log the fault, statistical, security, and user behavior events reported during running. Based on event information, you will be able to analyze the running status of your application. +The HiAppEvent module provides event logging APIs for applications to log the fault, statistical, security, and user behavior events reported during running. Based on event information, you will be able to analyze the running status of your application. -The HiAppEvent module can be used to develop application event-related functions, including flushing application events to a disk and querying historical application events. +You can use this module to develop application event-related functions, including flushing application events to a disk, querying and clearing application events, and customizing application event logging configuration. ## Basic Concepts diff --git a/en/device-dev/subsystems/subsys-dfx-hilog-rich.md b/en/device-dev/subsystems/subsys-dfx-hilog-rich.md index 674b777668c0fb362d2a7ddcdcce2016f31f2e77..5c2cb29001194d2f7e70a2685f249684522fb7e3 100644 --- a/en/device-dev/subsystems/subsys-dfx-hilog-rich.md +++ b/en/device-dev/subsystems/subsys-dfx-hilog-rich.md @@ -166,7 +166,7 @@ This development guide is applicable to standard-system devices \(reference memo ``` #undef LOG_DOMAIN #undef LOG_TAG - #define LOG_DOMAIN 0 // Indicates the service domain. The value ranges from 0x0 to 0xFFFFF. + #define LOG_DOMAIN 0xD003200 // Indicates the service domain. The value ranges from 0xD000000 to 0xFFFFF. #define LOG_TAG "MY_TAG" ``` @@ -195,7 +195,7 @@ This development guide is applicable to standard-system devices \(reference memo ``` class MyClass { - static constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, 0, "MY_TAG"}; + static constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, 0xD003200, "MY_TAG"}; ... } ``` @@ -204,7 +204,7 @@ This development guide is applicable to standard-system devices \(reference memo ``` using namespace OHOS::HiviewDFX; - static constexpr HiLogLabel LABEL = {LOG_CORE, 0, "MY_TAG"}; + static constexpr HiLogLabel LABEL = {LOG_CORE, 0xD003200, "MY_TAG"}; ``` Print logs.