diff --git a/en/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md b/en/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md index 3252a629a57470e22b150fa14177957581f0cd89..9b8204bc76167f4287c9e9f09e8a5a6ebfc9fea1 100644 --- a/en/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md +++ b/en/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md @@ -2,7 +2,7 @@ ## Overview -If HiSysEvent logging is required for a component, you need to define a YAML file and [configure the YAML file path](#section123181432175135) in the **bundle.js** file. During compilation, the OpenHarmony compilation framework will use the Python compilation script to parse and verify all the YAML files configured in the **bundle.js** file. On completion, the compilation framework will summarize the configuration information in the YAML files and convert the information into a JSON file named **hisysevent.def**. After that, the compilation framework will put the JSON file to a specified path as the basis for the system to determine whether to log system events. +If HiSysEvent logging is required for a component, you need to define a YAML file and [configure the YAML file path](#section123181432175135) in the **bundle.json** file. During compilation, the OpenHarmony compilation framework will use the Python compilation script to parse and verify all the YAML files configured in the **bundle.json** file. On completion, the compilation framework will summarize the configuration information in the YAML files and convert the information into a JSON file named **hisysevent.def**. After that, the compilation framework will put the JSON file to a specified path as the basis for the system to determine whether to log system events. ### Basic Concepts @@ -88,7 +88,7 @@ Understanding the following concepts would be helpful for you in configuring HiS ### Configuring the YAML File Path -In the **bundle.js** file, use the ```hisysevent_config``` attribute to specify the YAML file path. +In the **bundle.json** file, use the ```hisysevent_config``` attribute to specify the YAML file path. ``` { @@ -132,7 +132,7 @@ In the **bundle.js** file, use the ```hisysevent_config``` attribute to specify ``` >![](../public_sys-resources/icon-note.gif) **Note:** ->The YAML file can be placed in any directory of the component project as needed. You only need to specify the path in the **bundle.js** file. +>The YAML file can be placed in any directory of the component project as needed. You only need to specify the path in the **bundle.json** file. ### Compiling the YAML File diff --git a/zh-cn/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md b/zh-cn/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md index 43b117e43bf1154da0476d90b3840ebff1c16b3d..767d07500b7bf43df2acc1d5a86a2ad6c83ee1ee 100644 --- a/zh-cn/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md +++ b/zh-cn/device-dev/subsystems/subsys-dfx-hisysevent-logging-config.md @@ -6,7 +6,7 @@ ### 功能简介 -组件若有HiSysEvent事件的打点需求,则需要先定义yaml文件并在bundle.js文件中[配置yaml文件的路径](subsys-dfx-hisysevent-logging-config.md#配置yaml文件路径)。OpenHarmony编译框架在编译过程中则会通过python编译脚本解析校验bundle.js文件指定的所有yaml文件。在解析校验之后,编译框架会将这些yaml文件中配置的信息汇总转换成名为hisysevent.def的json文件。最后,将此json文件打包到系统指定路径下,用作HiSysEvent事件落盘的判断依据。 +组件若有HiSysEvent事件的打点需求,则需要先定义yaml文件并在bundle.json文件中[配置yaml文件的路径](subsys-dfx-hisysevent-logging-config.md#配置yaml文件路径)。OpenHarmony编译框架在编译过程中则会通过python编译脚本解析校验bundle.json文件指定的所有yaml文件。在解析校验之后,编译框架会将这些yaml文件中配置的信息汇总转换成名为hisysevent.def的json文件。最后,将此json文件打包到系统指定路径下,用作HiSysEvent事件落盘的判断依据。 ### 基本概念 @@ -100,7 +100,7 @@ ### 配置yaml文件路径 -在bundle.js文件中通过hisysevent_config属性完成yaml文件的路径指定: +在bundle.json文件中通过hisysevent_config属性完成yaml文件的路径指定: ``` @@ -146,7 +146,7 @@ > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** -> yaml文件可根据实际需求置于组件工程的任意目录下,只要在bundle.js文件指定即可。 +> yaml文件可根据实际需求置于组件工程的任意目录下,只要在bundle.json文件指定即可。 ### 编译yaml文件