• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# DFX Development
2
3## How do I flush HiLog information to disks?
4
5Applicable to: OpenHarmony 3.2 Beta (API version 9)
6
7**Symptom**
8
9How do I flush HiLog information to disks?
10
11**Solution**
12
13Run the **hilog -w start -f ckTest -l 1M -n 5 -m zlib -j 11** command.
14
15The log file is saved in the **/data/log/hilog/** directory.
16
17Parameter description:
18
19```
20-**-w**: Starts a log flushing task. **start** means to start the task, and **stop** means to stop the task.
21-**-f**: Sets the log file name.
22-**-l**: Sets the size of a single log file. The unit can be B, KB, MB, or GB.
23-**-n**: Sets the maximum number of log files. When the number of log files exceeds the specified value, the earliest log file will be overwritten. The value range is [2,1000].
24-**-m**: Specifies the log file compression algorithm.
25-**-j**: Specifies the task ID. The value ranges from **10** to **0xffffffffff**.
26For more details about parameters, run the **hilog --help** command.
27```
28