HiLog is the module of OpenHarmony that logs information such as user operations and system running status for the system framework, services, and applications.
User-space processes write logs to the ring buffer of hilogd through the log API. hilogd sends logs to the console for viewing or writes logs to the flash at the request of the hilog.
The details are as follows:
/base/hiviewdfx/hilog ├── frameworks # Framework code │ └── native # HiLog Native implementation code ├── interfaces # APIs │ └── native # External C/C++ APIs │ └── innerkits # Header files opened to internal subsystems │ └── kits # Header files opened to applications │ └── js # External js APIs ├── services │ └── hilogd # HiLog resident service implementation │ └── hilogtool # HiLog tool implementation
Clang 8.0.0 or later is required.
Table 1 Major APIs of HiLog
Run the hilog | grep "MY_TAG" command in shell mode.
Output in debug mode: 01-26 11:01:06.870 1051 1051 W 00201/test: Failed to visit [https://gitee.com/openharmony](https://gitee.com/openharmony), reason:503. Output in release mode: 01-26 11:01:06.870 1051 1051 W 00201/test: Failed to visit <private>, reason:503.
：Code submit frequency
：React/respond to issue & PR etc.
：Well-balanced team members and collaboration
：Recent popularity of project
：Star counts, download counts etc.