diff --git a/docs-en/readme/dfx.md b/docs-en/readme/dfx.md index 90b3da09d6bed2bd66b1963480e1c3e148285640..01e84be97eef5ab9a5f8fc32a05c0046909aad97 100755 --- a/docs-en/readme/dfx.md +++ b/docs-en/readme/dfx.md @@ -8,7 +8,7 @@ As chip resources are limited and hardware platforms are diversified, component- - mini: This framework is intended for hardware platforms with Cortex-M or equivalent processing capabilities. The system memory is generally less than 512 KB. There is only one lightweight file system that can be used in limited scenarios, or no file system at all. The mini framework complies with the Cortex Microcontroller Software Interface Standard \(CMSIS\). -- featured: This framework is intended for hardware platforms with Cortex-A or equivalent processing capabilities. The system memory is greater than 512 KB. There is a comprehensive file system for storing a large amount of data. The featured framework complies with the Portable Operating System Interface \(POSIX\) specifications. +- featured: This framework is intended for hardware platforms with Cortex-A or equivalent processing capabilities. The system memory is generally greater than 512 KB. There is a comprehensive file system for storing a large amount of data. The featured framework complies with the Portable Operating System Interface \(POSIX\) specifications. ## Directory Structure @@ -130,7 +130,7 @@ The mini framework is a simple and compact DFX design that provides the logging Add the following code to the initialization process of Module A to register it with the logging framework: ``` - HiLogRegisterModule(HILOG_MODULE_SAMGR, "A"); + HiLogRegisterModule(HILOG_MODULE_A, "A"); ``` @@ -155,7 +155,6 @@ The mini framework is a simple and compact DFX design that provides the logging

OUTPUT_OPTION_DEBUG: Logs are directly output to the serial port without cross-task scheduling. This value is used only for temporary debugging.

OUTPUT_OPTION_FLOW (default value): Logs are output as data flow to the serial port.

OUTPUT_OPTION_TEXT_FILE: Logs are output as text files.

-

OUTPUT_OPTION_BIN_FILE (to be supported): Logs are output as binary files.

level

@@ -189,7 +188,7 @@ The mini framework is a simple and compact DFX design that provides the logging Include **\#include "log.h"** in the **.c** file where logs need to be printed, call the following function: - HILOG\_INFO\(HILOG\_MODULE\_SAMGR, "log test: %d", 88\); + HILOG\_INFO\(HILOG\_MODULE\_A, "log test: %d", 88\); Parameter description: @@ -248,7 +247,11 @@ The featured framework provides comprehensive DFX features and logging APIs. Available hilog APIs: ``` -HILOGD(fmt,...) HILOGI(fmt,...) HILOGW(fmt,...) HILOGE(fmt,...) +HILOG_DEBUG(type, ...) +HILOG_INFO(type, ...) +HILOG_WARN(type, ...) +HILOG_ERROR(type, ...) +HILOG_FATAL(type, ...) ``` Usage guidelines: @@ -310,7 +313,7 @@ Parameter description: **Viewing logs** -1. Go to the **/storage/data/log/hilogs** directory to view hilog logs for debugging purpose. +1. Go to the **/storage/data/log/** directory to view hilog logs for debugging purpose. 2. Run the **hilogcat** command to view hilog logs in real time. diff --git "a/quick-start/Hi3861\345\274\200\345\217\221\346\235\277\344\273\213\347\273\215.md" "b/quick-start/Hi3861\345\274\200\345\217\221\346\235\277\344\273\213\347\273\215.md" index 17b493752d2ac9383cd6748cb9947421409df7ba..2ff7cf9d2fcc5c52e74b84dd51ed930b6ce26ca2 100755 --- "a/quick-start/Hi3861\345\274\200\345\217\221\346\235\277\344\273\213\347\273\215.md" +++ "b/quick-start/Hi3861\345\274\200\345\217\221\346\235\277\344\273\213\347\273\215.md" @@ -137,7 +137,7 @@ OpenHarmony基于Hi3861平台提供了多种开放能力,提供的关键组件

DFX

-

提供DFX能力。包括:流水日志、时间打点等。

+

提供DFX能力。包括:流水日志、事件打点等。

XTS