1# hilog
2
3
4HiLog日志系统,提供给系统框架、服务、以及应用,用于打印日志,记录用户操作、系统运行状态等。开发者可以通过hilog命令行查询相关日志信息。
5
6
7## 环境要求
8
9- 根据hdc命令行工具指导,完成[环境准备](hdc.md#环境准备)。
10
11- 正常连接设备。
12
13
14## 命令行说明
15
16| 短选项 | 长选项 | 参数 | 说明 |
17| -------- | -------- | -------- | -------- |
18| -h | --help |  | 帮助命令。 |
19| 缺省 | 缺省 |  | 阻塞读日志,不退出。 |
20| -x | --exit |  | 非阻塞读日志,读完退出。 |
21| -g |  |  | 查询buffer的大小,配合-t指定某一类型使用,默认app和core。 |
22| -G | --buffer-size | <size> | 设置指定<type>日志类型缓冲区的大小,配合-t指定某一类型使用,默认app和core, 可使用B/K/M为单位,范围为64K-16M。 |
23| -r |  |  | 清除buffer日志,配合-t指定某一类型使用,默认app和core。 |
24| <!--DelRow-->-p | --privacy | &lt;on/off&gt; | 支持系统调试时日志隐私开关控制。 |
25| <!--DelRow--> |  | on | 打开隐私开关,显示&lt;private&gt;。 |
26| <!--DelRow--> |  | off | 关闭隐私开关,显示明文。 |
27| -k |  | &lt;on/off&gt; | Kernel日志读取开关控制。 |
28|  |  | on | 打开读取kernel日志。 |
29|  |  | off | 关闭读取kernel日志。 |
30| -s | --statistics |  | 查询统计信息,需配合-t或-D使用。 |
31| -S |  |  | 清除统计信息,需配合-t或-D使用。 |
32| -Q |  | &lt;control-type&gt; | 流控缺省配额开关控制。 |
33|  |  | pidon | 进程流控开关打开。 |
34|  |  | pidoff | 进程流控开关关闭。 |
35|  |  | domainon | domain流控开关打开。 |
36|  |  | domainoff | domain流控开关关闭。 |
37| -L | --level | &lt;level&gt; | 指定级别的日志,示例:-L D/I/W/E/F。 |
38| -t | --type | &lt;type&gt; | 指定类型的日志,示例:-t app/core/init/only_prerelease。app为应用日志,core为系统日志,init为启动日志,only_prerelease为仅在系统release版本前打印的日志,应用开发者无需关注。|
39| -D | --domain | &lt;domain&gt; | 指定domain。 |
40| -T | --tag | &lt;tag&gt; | 指定tag。 |
41| -a | --head | &lt;n&gt; | 只显示前&lt;n&gt;行日志。 |
42| -z | --tail | &lt;n&gt; | 只显示后&lt;n&gt;行日志。 |
43| -P | --pid | &lt;pid&gt; | 标识不同的pid。 |
44| -e | --regex | &lt;expr&gt; | 只打印日志消息与&lt;expr&gt;匹配的行,其中&lt;expr&gt;是一个正则表达式。 |
45| -f | --filename | &lt;filename&gt; | 设置落盘的文件名。 |
46| -l | --length | &lt;length&gt; | 设置落盘的文件大小,需要大于等于64K。 |
47| -n | --number | &lt;number&gt; | 设置落盘文件的个数。 |
48| -j | --jobid | &lt;jobid&gt; | 设置落盘任务的ID。 |
49| -w | --write | &lt;control&gt; | 落盘任务控制。 |
50|  |  | query | 落盘任务查询。 |
51|  |  | start | 落盘任务开始,命令行参数为文件名、单文件大小、落盘算法、rotate文件数目。 |
52|  |  | stop | 落盘任务停止。 |
53|  |  | refresh | 刷新缓冲区的日志到落盘文件。 |
54|  |  | clear | 删除已经落盘的日志文件。 |
55| -m | --stream | &lt;algorithm&gt; | 落盘方式控制。 |
56|  |  | none | 无压缩方式落盘。 |
57|  |  | zlib | zlib压缩算法落盘,落盘文件为.gz。 |
58|  |  | zstd | zstd压缩算法落盘,落盘文件为.zst。 |
59| -v | --format | &lt;format&gt; |  |
60|  |  | time | 显示本地时间。 |
61|  |  | color | 显示不同级别显示不同颜色,参数缺省级别颜色模式处理(按黑白方式)。 |
62|  |  | epoch | 显示相对1970时间。 |
63|  |  | monotonic | 显示相对启动时间。 |
64|  |  | usec | 显示微秒精度时间。 |
65|  |  | nsec | 显示纳秒精度时间。 |
66|  |  | year | 显示将年份添加到显示的时间。 |
67|  |  | zone | 显示将本地时区添加到显示的时间。 |
68|  |  | wrap | 日志换行显示时,新行不增加时间戳等前缀。 |
69| -b | --baselevel | &lt;loglevel&gt; | 设置可打印日志的最低等级:D(DEBUG)/I(INFO)/W(WARN)/E(ERROR)/F(FATAL)。 |
70
71## 常用命令
72
73### 查看帮助命令
74
75   ```
76   hilog -h
77   ```
78
79   **使用样例:**
80
81   ```
82    $ hilog -h
83    Usage:
84    -h --help
85      Show all help information.
86      Show single help information with option:
87      query/clear/buffer/stats/persist/private/kmsg/flowcontrol/baselevel/domain/combo
88    Querying logs options:
89      No option performs a blocking read and keeps printing.
90      -x --exit
91        Performs a non-blocking read and exits when all logs in buffer are printed.
92      -a <n>, --head=<n>
93        Show n lines logs on head of buffer.
94      -z <n>, --tail=<n>
95        Show n lines logs on tail of buffer.
96   ```
97
98### 非阻塞读日志
99
100   ```
101   hilog -x
102   ```
103
104   **使用样例:**
105
106   ```
107   $ hilog -x
108   11-15 15:51:02.087  2823  2823 I A01B05/com.ohos.sceneboard/AOD: AodClockFullScreen --> timeTextLineHeight:313.3333333333333 clockMarginTop:99
109   11-15 15:51:02.087  2823  2823 I A01B05/com.ohos.sceneboard/AOD: AodClockFullScreen --> timeFontSize:114.48717948717947
110   11-15 15:51:02.090  2823  2823 I A01B05/com.ohos.sceneboard/AOD: AodClockFullScreen --> timeTextWidth:202,timeTextHeight:292
111   11-15 15:51:02.100  2823  2823 I A01B05/com.ohos.sceneboard/AOD: ComponentUtil --> Component(ComponentId-AodClockNumber) draw complete.
112   11-15 15:51:02.110  1197  1197 E C01406/render_service/OHOS::RS: [LoadImgsbyResolution] Can't find resolution (1084 x 2412) in config file
113   11-15 15:51:02.127  1197  1197 E C01406/render_service/OHOS::RS: [LoadImgsbyResolution] Can't find resolution (1084 x 2412) in config file
114   ```
115
116### 查看日志缓冲区大小
117
118   ```
119   hilog -g
120   ```
121
122   **使用样例:**
123
124   ```
125   $ hilog -g
126   Log type app buffer size is 16.0M
127   Log type init buffer size is 16.0M
128   Log type core buffer size is 16.0M
129   Log type only_prerelease buffer size is 16.0M
130   ```
131
132### 修改日志缓冲区大小
133
134   ```
135   hilog -G size
136   ```
137
138   **使用样例:**
139   ```
140   $ hilog -G 16M
141   Set log type app buffer size to 16.0M successfully
142   Set log type init buffer size to 16.0M successfully
143   Set log type core buffer size to 16.0M successfully
144   Set log type only_prerelease buffer size to 16.0M successfully
145   ```
146
147### 清除缓冲区日志
148
149   ```
150   hilog -r
151   ```
152
153   **使用样例:**
154   ```
155   $ hilog -r
156   Log type core,app,only_prerelease buffer clear successfully
157   ```
158
159### 内核日志读取开关控制
160
161   ```
162   hilog -k on/off
163   ```
164
165   **使用样例:**
166   ```
167   $ hilog -k on
168   Set hilogd storing kmsg log on successfully
169   $
170   $ hilog -k off
171   Set hilogd storing kmsg log off successfully
172   ```
173
174### 查询统计信息
175
176   ```
177   hilog -s
178   ```
179
180   **使用样例:**
181   ```
182   $ param set persist.sys.hilog.stats true
183   Set parameter persist.sys.hilog.stats true success
184   $ reboot
185   $ hilog -s
186   Log statistic report (Duration: 0h0m32s.564, From: 11-15 16:04:08.628):
187   Total lines: 137517, length: 8.0M
188   DEBUG lines: 0(0%), length: 0.0B(0%)
189   INFO lines: 101795(74%), length: 6.1M(76%)
190   WARN lines: 10268(7.5%), length: 719.9K(8.8%)
191   ERROR lines: 25452(19%), length: 1.2M(15%)
192   FATAL lines: 2(0.0015%), length: 259.0B(0.0031%)
193   ------------------------------------------------------------
194   Domain Table:
195   LOGTYPE- DOMAIN---- TAG----------------------------- MAX_FREQ-- TIME---------------- MAX_TP---- TIME---------------- LINES----- LENGTH---- DROPPED---
196   app----- 0xf00----- -------------------------------- 924.00---- 11-15 16:04:25.594-- 111975.00- 11-15 16:04:25.594-- 3386------ 371.5K---- 0---------
197   app----- 0x0------- -------------------------------- 285.00---- 11-15 16:04:34.877-- 44242.00-- 11-15 16:04:34.877-- 990------- 129.2K---- 0---------
198   ```
199
200   **统计信息说明**
201   ```
202   MAX_FREQ:日志打印频率最高的每秒行数
203   TIME:    对应发生时间
204   MAX_TP:  日志打印频率最高的每秒字节数
205   LINES:   统计周期内的总行数
206   LENGTH:  统计周期内的总字节数
207   DROPPED: 统计周期内丢失的行数
208   ```
209
210### 清除统计信息
211
212   ```
213   hilog -S
214   ```
215
216   **使用样例:**
217
218   ```
219   $ hilog -S
220   Statistic info clear successfully
221   ```
222
223### 进程流控开关
224
225   ```
226   hilog -Q pidon/pidoff
227   ```
228
229   **使用样例:**
230
231   ```
232   $ hilog -Q pidon
233   Set flow control by process to enabled successfully
234   $
235   $ hilog -Q pidoff
236   Set flow control by process to disabled successfully
237   ```
238
239### domain流控开关
240
241   ```
242   hilog -Q domainon/domainoff
243   ```
244
245   **使用样例:**
246
247   ```
248   $ hilog -Q domainon
249   Set flow control by domain to enabled successfully
250   $
251   $ hilog -Q domainoff
252   Set flow control by domain to disabled successfully
253   ```
254
255### 查看指定级别日志
256
257   ```
258   hilog -L D/I/W/E/F
259   ```
260
261   **使用样例:**
262
263   ```
264   $ hilog -L E
265   08-28 09:01:25.730  2678  2678 E A00F00/com.huawei.hmos.aidataservice/AiDataService_5.10.7.320: DataChangeNotifyManager: notifyDataChange CommonEntity no valid entity to notify
266   08-28 09:01:56.058  8560  8560 E A00500/com.ohos.settingsdata/SettingsData: DB not ready request = datashare:///com.ohos.settingsdata/entry/settingsdata/SETTINGSDATA?Proxy=true&key=analysis_service_switch_on , retry after DB startup
267   08-28 09:01:56.082  8560  8560 E A00500/com.ohos.settingsdata/SettingsData: decoder failure: /data/migrate/settings_global.xml , error code:-1
268   08-28 09:01:56.082  8560  8560 E A00500/com.ohos.settingsdata/SettingsData: clearXml failed:No such file or directory, error code:13900002
269   08-28 09:01:56.083  8560  8560 E A00500/com.ohos.settingsdata/SettingsData: readText failed:No such file or directory, error code:13900002
270   08-28 09:01:56.371  8586  8586 E A00500/com.ohos.settingsdata/SettingsData: DB not ready request =    datashare:///com.ohos.settingsdata/entry/settingsdata/SETTINGSDATA?Proxy=true&key=photo_network_connection_status , retry after DB startup
271   08-28 09:01:56.408  8586  8586 E A00500/com.ohos.settingsdata/SettingsData: decoder failure: /data/migrate/settings_global.xml , error code:-1
272   ```
273
274### 查看指定类型日志
275
276   ```
277   hilog -t app
278   ```
279
280   **使用样例:**
281
282   ```
283   $ hilog -t app
284   11-15 16:04:45.903  5630  5630 I A0A5A5/os.hiviewcare:staticSubscriber/Diagnosis: [DetectionFilter]820001084: switch off
285   11-15 16:04:45.905  5630  5630 I A0A5A5/os.hiviewcare:staticSubscriber/Diagnosis: [DetectionFilter]847005050: frequency limit
286   11-15 16:04:45.905  5630  5630 I A0A5A5/os.hiviewcare:staticSubscriber/Diagnosis: [SmartNotifyHandler]detections after filter: []
287   11-15 16:04:45.905  5630  5630 I A0A5A5/os.hiviewcare:staticSubscriber/Diagnosis: [SmartNotifyHandler]no detections to detect
288   11-15 16:04:45.924  5687  5687 I A01B06/common/KG: MetaBalls-SystemTopPanelController --> init charging status = 3
289   ```
290
291### 查看指定domain日志
292
293   ```
294   hilog -D 01B06
295   ```
296
297   **使用样例:**
298
299   ```
300   $ hilog -D 01B06
301   11-15 16:04:54.981  5687  5687 I A01B06/common/KG: MetaBalls-MetaBallRenderer --> pressTime = 0 appearTime = 1731657885972
302   11-15 16:04:54.981  5687  5687 I A01B06/common/KG: MetaBalls-MetaBallRenderer --> backAnimator on finish
303   11-15 16:04:54.982  5687  5687 I A01B06/common/KG: MetaBalls-MetaBallRenderer --> setTimeout over 9s and begin animate on finish
304   11-15 16:04:55.297  5687  5687 I A01B06/common/KG: MetaBalls-MetaBallRenderer --> chargingTextExitAnimation onFinish
305   11-15 16:04:55.494  5687  5687 I A01B06/common/KG: MetaBalls-MetaBallRenderer --> uiExtension session send data success,type: exitAnimationFinish
306   ```
307
308### 查看指定TAG日志
309
310   ```
311   hilog -T tag
312   ```
313
314   **使用样例:**
315
316   ```
317   $ hilog -T SAMGR
318   08-28 09:27:59.581   610 11504 I C01800/samgr/SAMGR: CommonEventCollect save extraData 1661
319   08-28 09:27:59.581   610 11504 I C01800/samgr/SAMGR: OnReceiveEvent get action: usual.event.BATTERY_CHANGED code: 0, extraDataId 1661
320   08-28 09:27:59.582   610 11504 I C01800/samgr/SAMGR: DoEvent:4 name:usual.event.BATTERY_CHANGED value:0
321   08-28 09:27:59.582   610 11504 W C01800/samgr/SAMGR: LoadSa SA:10120 AddDeath fail,cnt:1,callpid:610
322   08-28 09:27:59.583   610 11504 I C01800/samgr/SAMGR: LoadSa SA:10120 size:1,count:1
323   08-28 09:27:59.601   610 11504 I C01800/samgr/SAMGR: Scheduler SA:10120 loading
324   08-28 09:27:59.965 11518 11518 I C01800/media_analysis_service/SAMGR: SA:10120 OpenSo spend 315ms
325   08-28 09:27:59.965   610  4064 I C01800/samgr/SAMGR: AddProc:media_analysis_service. size:75
326   ```
327
328### 查看缓冲区前n行日志
329
330   ```
331   hilog -a 8
332   ```
333
334   **使用样例:**
335
336   ```
337   $ hilog -a 8
338   11-15 16:04:08.628     0     0 I I00000/HiLog: ========Zeroth log of type: init
339   11-15 16:04:08.603   506   506 I I02C01/hmos_cust_carrier_mount/CustCarrierMount: MountCarrierToShared start
340   11-15 16:04:08.604   506   506 I I02C01/hmos_cust_carrier_mount/CustCarrierMount: success to mount carrier to shared
341   11-15 16:04:15.394   972   972 I I02C01/hmos_cust_carrier_mount/CustCarrierMount: UpdateCotaOpkeyLink start
342   11-15 16:04:15.396   972   972 W I02C01/hmos_cust_carrier_mount/CustCarrierMount: not exsit CUST_GLOBAL_CARRIER_DIR or COTA_PARAM_CARRIER_DIR
343   11-15 16:04:15.887   972   972 I I02C01/hmos_cust_carrier_mount/CustCarrierMount: success to update cota carrier
344   11-15 16:04:48.749  5777  5901 I A00001/com.huawei.hmsapp.hiai.core/HiAI_Metadata: metadata is null
345   11-15 16:04:48.749  5777  5901 I A00001/com.huawei.hmsapp.hiai.core/HiAI_PluginAbilityInfo: abilityInfo is null
346   ```
347
348### 查看缓冲区后n行日志
349
350   ```
351   hilog -z 8
352   ```
353
354   **使用样例:**
355
356   ```
357   $ hilog -z 8
358   11-15 16:12:19.015  1899  7867 W C01719/wifi_manager_service/ffrt: 423:FFRTQosApplyForOther:244 tid 7867, Operation not permitted, ret:-1, eno:1
359   11-15 16:12:19.125  1043  1072 I C01C42/time_service/TimeService: uid: 1010 id:428551571 name:wifi_manager_service wk:0
360   11-15 16:12:19.125  1043  1072 I C01C42/time_service/TimeService: bat: -1 id:428551571 we:505225000000 mwe:512725000000
361   11-15 16:12:19.125  1043  1072 I C01C42/time_service/TimeService: typ:3 trig: 505 225000000, bt: 495230369193
362   11-15 16:12:19.125  1043  1072 I C01C42/time_service/TimeService: cb: 428551571 ret: 0
363   11-15 16:12:19.435  3086  7813 I C01719/com.ohos.contactsdataability/ffrt: 45:~WorkerThread:72 to exit, qos[3]
364   11-15 16:12:19.691   800  1404 I C01713/resource_schedule_service/SUSPEND_MANAGER: [(HasSpecialStateFromBgtask):759] 20020107_com.ohos.medialibrary.medialibrarydata
365   11-15 16:12:19.691   800  1404 I C01713/resource_schedule_service/SUSPEND_MANAGER: [(DozeFreezeUnit):890] Doze has special:ERR_HAS_PID_EFFICIENCY_RESOURCE
366   ```
367
368### 查看指定进程日志
369
370   ```
371   hilog -P pid
372   ```
373
374   **使用样例:**
375
376   ```
377   $ hilog -P 618
378   08-28 10:19:16.872   618 17729 I C02D15/hiview/XPower: [task_52]#current system load is: 0.028767
379   08-28 10:19:23.997   618 17580 I C02D10/hiview/CpuCollector: CalculateProcessCpuStatInfos: startTime=1724811553746, endTime=1724811563996, startBootTime=47001084, endBootTime=47011335, period=10251
380   08-28 10:19:23.999   618 17580 I C02D10/hiview/CpuCollector: CollectProcessCpuStatInfos: collect process cpu statistics information size=234, isNeedUpdate=1
381   08-28 10:19:24.002   618 17580 W C01650/hiview/Rdb:  DB :
382   08-28 10:19:24.002   618 17580 W C01650/hiview/Rdb:  device: 12583051 inode: 40230 mode: 432 size: 569344 natime: Wed Aug 28 00:00:06 2024
383   08-28 10:19:24.002   618 17580 W C01650/hiview/Rdb:  smtime: Wed Aug 28 00:34:30 2024
384   08-28 10:19:24.002   618 17580 W C01650/hiview/Rdb:  sctime: Wed Aug 28 00:34:30 2024
385   ```
386
387### 查看符合正则匹配关键字的日志
388
389   ```
390   hilog -e start
391   ```
392
393   **使用样例:**
394
395   ```
396   $ hilog -e start
397   11-15 16:17:17.578   547  4504 I C01800/samgr/SAMGR: AddProc start proc:media_analysis_service spend 223ms
398   11-15 16:17:17.578   547  4504 I C01800/samgr/SAMGR: Scheduler proc:media_analysis_service handle started event
399   11-15 16:17:17.578   547  4504 I C01800/samgr/SAMGR: Scheduler proc:media_analysis_service started
400   11-15 16:17:17.580  8877  8877 I C01810/media_analysis_service/SAFWK: start tasks proc:media_analysis_service end,spend 1ms
401   11-15 16:17:17.582  8877  8877 I C01651/media_analysis_service/DataShare: [operator()()-data_share_manager_impl.cpp:134]: RecoverObs start
402   11-15 16:17:17.589  8877  8893 I C01651/media_analysis_service/DataShare: [Connect()-ams_mgr_proxy.cpp:67]: connect start, uri = ******/media
403   11-15 16:17:18.225  1155  1633 I C02943/power_host/ThermalHdi: CreateLogFile start
404   11-15 16:17:18.264  1155  1633 I C02943/power_host/ThermalHdi: CompressFile start
405   ```
406
407### 查看、设置落盘任务
408
409   ```
410   hilog -w control
411   ```
412
413   > **说明:**
414   >
415   > 查询当前任务: hilog -w query
416   >
417   > 开启hilog落盘任务,并且设置落盘文件数量为1000个: hilog -w start -n 1000
418   >
419   > 开启kmsglog落盘任务,并且设置落盘文件数量为100个: hilog -w start -n 100 -t kmsg
420   >
421   > 停止当前落盘任务: hilog -w stop
422   >
423   > 开启kmsglog落盘任务,并且设置落盘规则,其中压缩方式可以为zlib,zstd,none。以设置规则为例:文件名为kmsglog,大小为2M,数量为100个, 其压缩方式为zlib压缩,命令行为: hilog -w start -t kmsg -f kmsglog -l 2M -n 100 -m zlib
424
425   **使用样例:**
426
427   ```
428   $ hilog -w query
429   Persist task query failed
430   No running persistent task [CODE: -63]
431   $
432   $ hilog -w start -n 1000
433   Persist task [jobid:1][fileNum:1000][fileSize:4194304] start successfully
434   $
435   $ hilog -w start -n 100 -t kmsg
436   Persist task [jobid:2][fileNum:100][fileSize:4194304] start successfully
437   $
438   $ hilog -w stop
439   Persist task [jobid:1] stop successfully
440   Persist task [jobid:2] stop successfully
441   $
442   $ hilog -w start -t kmsg -f kmsglog -l 2M -n 100 -m zlib
443   Persist task [jobid:2][fileNum:100][fileSize:2097152] start successfully
444   ```
445
446### 设置日志显示格式
447
448   ```
449   hilog -v time/color/epoch/monotonic/usec/nsec/year/zone/wrap
450   ```
451
452   **使用样例:**
453
454   ```
455   $ hilog -v time
456   11-15 16:36:21.027  1134  1723 I C02B01/riladapter_host/HrilExt: [NotifyToBoosterTel-(hril_manager_ext.cpp:440)] RilExt:Notify to booster tel finish
457   11-15 16:36:21.027  1134  1723 I C02B01/riladapter_host/HrilExt: [NotifyToBoosterNet-(hril_manager_ext.cpp:450)] RilExt: HNOTI_BOOSTER_NET_IND report to booster net
458   11-15 16:36:21.027  1134  1723 I C02B01/riladapter_host/HrilExt: [NotifyToBoosterNet-(hril_manager_ext.cpp:454)] RilExt: HNOTI_BOOSTER_NET_IND report to booster net finish
459   11-15 16:36:21.027  1134  1723 I P01FFF/riladapter_host/Rilvendor: CHAN [HandleUnsolicited] HandleUnsolicited done for modem:0, index:0, atResponse:^BOOSTERNTF: 3, 20,"0600100001000004000000000102A4FF0202F6FF"
460   11-15 16:36:21.802  2809  2831 E C02D06/com.ohos.sceneboard/XCollie: Send kick,foundation to hungtask Successful
461   11-15 16:36:21.911   882  3016 I C01F0B/telephony/TelephonyVSim: state machine ProcessEvent Id: 125
462   11-15 16:36:21.911   882  3016 I C01F0B/telephony/TelephonyVSim: StateProcess
463   $
464   $ hilog -v nsec
465   11-15 16:37:09.010658555  1134  1723 I C02B01/riladapter_host/HrilExt: [BoosterRawInd-(hril_booster.cpp:296)] RilExt: BoosterRawInd
466   11-15 16:37:09.010676263  1134  1723 I C02B01/riladapter_host/HrilExt: [BoosterRawInd-(hril_booster.cpp:328)] check need notify to satellite:indType 6
467   11-15 16:37:09.010800221  1134  1723 I C02B01/riladapter_host/HrilExt: [NotifyToBoosterTel-(hril_manager_ext.cpp:436)] RilExt: report to telephony ext, requestNum: 4201
468   11-15 16:37:09.011011680  1134  1723 I C02B01/riladapter_host/HrilExt: [NotifyToBoosterTel-(hril_manager_ext.cpp:440)] RilExt:Notify to booster tel finish
469   11-15 16:37:09.011064805  1134  1723 I C02B01/riladapter_host/HrilExt: [NotifyToBoosterNet-(hril_manager_ext.cpp:450)] RilExt: HNOTI_BOOSTER_NET_IND report to booster net
470   11-15 16:37:09.011200742  1134  1723 I C02B01/riladapter_host/HrilExt: [NotifyToBoosterNet-(hril_manager_ext.cpp:454)] RilExt: HNOTI_BOOSTER_NET_IND report to booster net finish
471   ```
472
473### 设置可打印日志的最低等级
474
475   ```
476   hilog -b D/I/W/E/F
477   ```
478
479   **使用样例:**
480
481   ```
482   $ hilog -b E
483   Set global log level to E successfully
484   ```
485<!--Del-->
486### 隐私开关
487
488   ```
489   hilog -p on/off
490   ```
491
492   **使用样例:**
493
494   ```
495   # hilog -p on
496   Set hilog privacy format on successfully
497   #
498   # hilog -p off
499   Set hilog privacy format off successfully
500   ```
501<!--DelEnd-->