1# DFX<a name="EN-US_TOPIC_0000001162014185"></a> 2 3- [Introduction](#section1347419114210) 4- [Architecture](#section342962219551) 5- [Directory Structure](#section62815498425) 6- [Repositories Involved](#section767551120815) 7 8## Introduction<a name="section1347419114210"></a> 9 10[Design for X](https://en.wikipedia.org/wiki/Design_for_X) \(DFX\) refers to the software design that aims to improve the quality attribute in OpenHarmony. It mainly consists of two parts: design for reliability \(DFR\) and design for testability \(DFT\). 11 12The DFX subsystem provides the following capabilities: 13 14- HiLog: Implements logging. 15 16- Hiview: Functions as the plug-in platform. 17- FaultLoggerd: Implements fault information collection and subscription. 18- HiAppEvent: Implements logging of application events. 19- HiSysEvent: Implements logging of system events. 20 21## Architecture<a name="section342962219551"></a> 22 23**Figure 1** Architecture of the DFX subsystem<a name="fig18347131919423"></a> 24 25 26 27 28## Directory Structure<a name="section62815498425"></a> 29 30``` 31base/hiviewdfx # DFX base repository, which stores compilation-related configurations 32├── hiview # Hiview module, which implements the plug-in platform and event handler capabilities 33├── hiview_lite # Hiview_Lite module, which implements the logging task capability for the mini system 34├── hilog # HiLog module, which implements logging for the system 35├── hilog_lite # HiLog_Lite module, which implements logging for the mini and small systems 36├── hievent_lite # HiEvent_Lite module, which implements event logging for the mini system 37├── hiappevent # HiAppEvent module, which implements application event logging framework and APIs 38├── hisysevent # HiSysEvent module, which implements system event logging APIs and services 39├── faultloggerd # FaultLoggerd module, which implements collection of application fault logs 40``` 41 42## Repositories Involved<a name="section767551120815"></a> 43 44**DFX subsystem** 45 46[hiviewdfx\_hiview](https://gitee.com/openharmony/hiviewdfx_hiview/blob/master/README.md) 47 48[hiviewdfx\_hilog](https://gitee.com/openharmony/hiviewdfx_hilog/blob/master/README.md) 49 50[hiviewdfx\_hiappevent](https://gitee.com/openharmony/hiviewdfx_hiappevent/blob/master/README.md) 51 52[hiviewdfx\_hisysevent](https://gitee.com/openharmony/hiviewdfx_hisysevent/blob/master/README.md) 53 54[hiviewdfx\_faultloggerd](https://gitee.com/openharmony/hiviewdfx_faultloggerd/blob/master/README.md) 55 56[hiviewdfx\_hilog\_lite](https://gitee.com/openharmony/hiviewdfx_hilog_lite/blob/master/README.md) 57 58[hiviewdfx\_hievent\_lite](https://gitee.com/openharmony/hiviewdfx_hievent_lite/blob/master/README.md) 59 60[hiviewdfx\_hiview\_lite](https://gitee.com/openharmony/hiviewdfx_hiview_lite/blob/master/README.md) 61 62