From ff1732408d2469e6909c3b62faadb1df4b182877 Mon Sep 17 00:00:00 2001 From: xuyong Date: Thu, 1 Dec 2022 11:59:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E7=A7=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xuyong --- .../subsystems/subsys-dfx-hisysevent-logging-config.md | 6 +++--- .../subsystems/subsys-dfx-hisysevent-logging-config.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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 3252a629a5..9b8204bc76 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 43b117e43b..767d07500b 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文件 -- GitLab