• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# hilog
2
3
4HiLog is a log system that provides logging for the system framework, services, and applications to record information on user operations and system running status. You can run the hilog commands to query related log information.
5
6
7## Environment Setup
8
9- The environment for OpenHarmony Device Connector (hdc) has been set up. For details, see [Environment Setup](hdc.md#environment-setup).
10
11- The devices are properly connected.
12
13
14## Commands
15
16| Short Option| Long Option| Parameter| Description|
17| -------- | -------- | -------- | -------- |
18| -h | --help | - | Shows help information.|
19| Default| Default| - | Performs a blocking read on logs, with no exiting after the read finishes.|
20| -x | --exit | - | Performs a non-blocking read on logs, with exiting after the read finishes.|
21| -g | - | - | Checks the buffer size for logs of a specified type. This option is used together with **-t**, which specifies a log type. By default, the **app** or **core** types are used.|
22| -G | --buffer-size | <size> | Sets the size of the buffer for logs of a specified type. This option is used together with **-t**, which specifies a log type. By default, the **app** or **core** types are used. The unit can be B, KB, MB, or GB. The value ranges from 64 KB to 16 MB.|
23| -r | - | - | Clears the buffer for logs of a specified type. This option is used together with **-t**, which specifies a log type. By default, the **app** or **core** types are used.|
24| <!--DelRow-->-p | --privacy | &lt;on/off&gt; | Specifies whether to enable privacy for logs during system debugging.|
25| <!--DelRow--> |  | on | Enables privacy so that parameters are displayed as **\<private>** in printed logs.|
26| <!--DelRow--> |  | off | Disables privacy so that parameters are displayed as they are in printed logs.|
27| -k | - | &lt;on/off&gt; | Specifies whether to enable kernel logging.|
28|  |  | on | Enables kernel logging.|
29|  |  | off | Disables kernel logging.|
30| -s | --statistics | - | Shows statistics. This option must be used together with **-t** or **-D**.|
31| -S | - | - | Clears statistics. This option must be used together with **-t** or **-D**.|
32| -Q | - | &lt;control-type&gt; | Specifies whether to enable the default quota for flow control.|
33|  |  | pidon | Enables process flow control.|
34|  |  | pidoff | Disables process flow control.|
35|  |  | domainon | Enables domain flow control.|
36|  |  | domainoff | Disables domain flow control.|
37| -L | --level | &lt;level&gt; | Sets the log level, for example, **-L D/I/W/E/F**.|
38| -t | --type | &lt;type&gt; | Sets the log type, for example, **-t app/core/init/only_prerelease**. **app** indicates the application log, **core** indicates the system log, **init** indicates the startup log, and **only_prerelease** indicates the log printed before the Release version.|
39| -D | --domain | &lt;domain&gt; | Sets the domain.|
40| -T | --tag | &lt;tag&gt; | Sets the tag.|
41| -a | --head | &lt;n&gt; | Shows the first several lines of logs.The parameter **\<n>** indicates the number of first lines to show.|
42| -z | --tail | &lt;n&gt; | Shows the last several lines of logs.The parameter **\<n>** indicates the number of last lines to show.|
43| -P | --pid | &lt;pid&gt; | Identifies a process.|
44| -e | --regex | &lt;expr&gt; | Prints only the lines of logs that match the regular expression specified through **\<expr>**.|
45| -f | --filename | &lt;filename&gt; | Sets the names of the files to be flushed to disk.|
46| -l | --length | &lt;length&gt; | Sets the size of the files to be flushed to disk. The value must be greater than or equal to 64 KB.|
47| -n | --number | &lt;number&gt; | Sets the number of files to be flushed to disk.|
48| -j | --jobid | &lt;jobid&gt; | Sets the ID of a flushing task.|
49| -w | --write | &lt;control&gt; | Controls a flushing task.|
50|  |  | query | Queries flushing tasks.|
51|  |  | start | Starts a flushing task. The command line parameters are the file name, size of a single file, flushing mode, and number of rotated files.|
52|  |  | stop | Stops a flushing task.|
53|  |  | refresh | Refreshes the logs in the buffer to the flushed file.|
54|  |  | clear | Deletes log files that are flushed to disks.|
55| -m | --stream | &lt;algorithm&gt; | Sets the flushing mode.|
56|  |  | none | Indicates that data is flushed to disks in non-compression mode.|
57|  |  | zlib | Indicates that data is flushed to disks using the zlib compression algorithm. The flushed file is in .gz format.|
58|  |  | zstd | Indicates that data is flushed to disks using the zstd compression algorithm. The flushed file is in .zst format.|
59| -v | --format | &lt;format&gt; | Sets the display format.|
60|  |  | time | Displays the local time.|
61|  |  | color | Adds colors to logs at different levels. By default, logs are displayed in black and white.|
62|  |  | epoch | Displays the amount of time elapsed since the epoch time.|
63|  |  | monotonic | Displays the amount of time elapsed since the system startup time.|
64|  |  | usec | Displays the time in microseconds.|
65|  |  | nsec | Displays the time in nanoseconds.|
66|  |  | year | Displays the time with the year portion.|
67|  |  | zone | Displays the time with the local time zone.|
68|  |  | wrap | Displays logs in different lines without adding prefixes such as the timestamp to the new line.|
69| -b | --baselevel | &lt;loglevel&gt; | Sets the lowest level of logs that can be printed: D(DEBUG)/I(INFO)/W(WARN)/E(ERROR)/F(FATAL).|
70| | --persist| - |Persists the log level setting command. (The setting will not be lost after the system is restarted.)|
71
72## Examples
73
74### Displaying the Help Information
75
76   ```
77   hilog -h
78   ```
79
80   **Example**
81
82   ```
83    $ hilog -h
84    Usage:
85    -h --help
86      Show all help information.
87      Show single help information with option:
88      query/clear/buffer/stats/persist/private/kmsg/flowcontrol/baselevel/domain/combo
89    Querying logs options:
90      No option performs a blocking read and keeps printing.
91      -x --exit
92        Performs a non-blocking read and exits when all logs in buffer are printed.
93      -a <n>, --head=<n>
94        Show n lines logs on head of buffer.
95      -z <n>, --tail=<n>
96        Show n lines logs on tail of buffer.
97   ```
98
99### Non-Blocking Reading on Logs
100
101   ```
102   hilog -x
103   ```
104
105   **Example**
106
107   ```
108   $ hilog -x
109   11-15 15:51:02.087  2823  2823 I A01B05/com.ohos.sceneboard/AOD: AodClockFullScreen --> timeTextLineHeight:313.3333333333333 clockMarginTop:99
110   11-15 15:51:02.087  2823  2823 I A01B05/com.ohos.sceneboard/AOD: AodClockFullScreen --> timeFontSize:114.48717948717947
111   11-15 15:51:02.090  2823  2823 I A01B05/com.ohos.sceneboard/AOD: AodClockFullScreen --> timeTextWidth:202,timeTextHeight:292
112   11-15 15:51:02.100  2823  2823 I A01B05/com.ohos.sceneboard/AOD: ComponentUtil --> Component(ComponentId-AodClockNumber) draw complete.
113   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
114   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
115   ```
116
117### Displaying the Log Buffer Size
118
119   ```
120   hilog -g
121   ```
122
123   **Example**
124
125   ```
126   $ hilog -g
127   Log type app buffer size is 16.0M
128   Log type init buffer size is 16.0M
129   Log type core buffer size is 16.0M
130   Log type only_prerelease buffer size is 16.0M
131   ```
132
133### Setting the Log Buffer Size
134
135   ```
136   hilog -G size
137   ```
138
139   **Example**
140   ```
141   $ hilog -G 16M
142   Set log type app buffer size to 16.0M successfully
143   Set log type init buffer size to 16.0M successfully
144   Set log type core buffer size to 16.0M successfully
145   Set log type only_prerelease buffer size to 16.0M successfully
146   ```
147
148### Clearing the Log Buffer
149
150   ```
151   hilog -r
152   ```
153
154   **Example**
155   ```
156   $ hilog -r
157   Log type core,app,only_prerelease buffer clear successfully
158   ```
159
160### Enabling/Disabling Kernel Log Reading
161
162   ```
163   hilog -k on/off
164   ```
165
166   **Example**
167   ```
168   $ hilog -k on
169   Set hilogd storing kmsg log on successfully
170   $
171   $ hilog -k off
172   Set hilogd storing kmsg log off successfully
173   ```
174
175### Displaying Statistics
176
177   ```
178   hilog -s
179   ```
180
181   **Example**
182   ```
183   $ param set persist.sys.hilog.stats true
184   Set parameter persist.sys.hilog.stats true success
185   $ reboot
186   $ hilog -s
187   Log statistic report (Duration: 0h0m32s.564, From: 11-15 16:04:08.628):
188   Total lines: 137517, length: 8.0M
189   DEBUG lines: 0(0%), length: 0.0B(0%)
190   INFO lines: 101795(74%), length: 6.1M(76%)
191   WARN lines: 10268(7.5%), length: 719.9K(8.8%)
192   ERROR lines: 25452(19%), length: 1.2M(15%)
193   FATAL lines: 2(0.0015%), length: 259.0B(0.0031%)
194   ------------------------------------------------------------
195   Domain Table:
196   LOGTYPE- DOMAIN---- TAG----------------------------- MAX_FREQ-- TIME---------------- MAX_TP---- TIME---------------- LINES----- LENGTH---- DROPPED---
197   app----- 0xf00----- -------------------------------- 924.00---- 11-15 16:04:25.594-- 111975.00- 11-15 16:04:25.594-- 3386------ 371.5K---- 0---------
198   app----- 0x0------- -------------------------------- 285.00---- 11-15 16:04:34.877-- 44242.00-- 11-15 16:04:34.877-- 990------- 129.2K---- 0---------
199   ```
200
201   **Description**
202   ```
203   MAX_FREQ: the maximum number of log lines per second
204   TIME: occurrence time
205   MAX_TP: the maximum number of bytes per second
206   LINES: the total number of lines in a statistical period
207   LENGTH: the total number of bytes in a statistical period
208   DROPPED: the number of dropped lines in a statistical period
209   ```
210
211### Clearing Statistics
212
213   ```
214   hilog -S
215   ```
216
217   **Example**
218
219   ```
220   $ hilog -S
221   Statistic info clear successfully
222   ```
223
224### Enabling/Disabling Process Flow Control
225
226   ```
227   hilog -Q pidon/pidoff
228   ```
229
230   **Example**
231
232   ```
233   $ hilog -Q pidon
234   Set flow control by process to enabled successfully
235   $
236   $ hilog -Q pidoff
237   Set flow control by process to disabled successfully
238   ```
239
240### Enabling/Disabling Domain Flow Control
241
242   ```
243   hilog -Q domainon/domainoff
244   ```
245
246   **Example**
247
248   ```
249   $ hilog -Q domainon
250   Set flow control by domain to enabled successfully
251   $
252   $ hilog -Q domainoff
253   Set flow control by domain to disabled successfully
254   ```
255
256### Displaying Logs of a Specified Level
257
258   ```
259   hilog -L D/I/W/E/F
260   ```
261
262   **Example**
263
264   ```
265   $ hilog -L E
266   08-28 09:01:25.730  2678  2678 E A00F00/com.aidataservice/AiDataService_5.10.7.320: DataChangeNotifyManager: notifyDataChange CommonEntity no valid entity to notify
267   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
268   08-28 09:01:56.082  8560  8560 E A00500/com.ohos.settingsdata/SettingsData: decoder failure: /data/migrate/settings_global.xml , error code:-1
269   08-28 09:01:56.082  8560  8560 E A00500/com.ohos.settingsdata/SettingsData: clearXml failed:No such file or directory, error code:13900002
270   08-28 09:01:56.083  8560  8560 E A00500/com.ohos.settingsdata/SettingsData: readText failed:No such file or directory, error code:13900002
271   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
272   08-28 09:01:56.408  8586  8586 E A00500/com.ohos.settingsdata/SettingsData: decoder failure: /data/migrate/settings_global.xml , error code:-1
273   ```
274
275### Displaying Logs of a Specified Type
276
277   ```
278   hilog -t app
279   ```
280
281   **Example**
282
283   ```
284   $ hilog -t app
285   11-15 16:04:45.903  5630  5630 I A0A5A5/os.hiviewcare:staticSubscriber/Diagnosis: [DetectionFilter]820001084: switch off
286   11-15 16:04:45.905  5630  5630 I A0A5A5/os.hiviewcare:staticSubscriber/Diagnosis: [DetectionFilter]847005050: frequency limit
287   11-15 16:04:45.905  5630  5630 I A0A5A5/os.hiviewcare:staticSubscriber/Diagnosis: [SmartNotifyHandler]detections after filter: []
288   11-15 16:04:45.905  5630  5630 I A0A5A5/os.hiviewcare:staticSubscriber/Diagnosis: [SmartNotifyHandler]no detections to detect
289   11-15 16:04:45.924  5687  5687 I A01B06/common/KG: MetaBalls-SystemTopPanelController --> init charging status = 3
290   ```
291
292### Displaying Logs of a Specified Domain
293
294   ```
295   hilog -D 01B06
296   ```
297
298   **Example**
299
300   ```
301   $ hilog -D 01B06
302   11-15 16:04:54.981  5687  5687 I A01B06/common/KG: MetaBalls-MetaBallRenderer --> pressTime = 0 appearTime = 1731657885972
303   11-15 16:04:54.981  5687  5687 I A01B06/common/KG: MetaBalls-MetaBallRenderer --> backAnimator on finish
304   11-15 16:04:54.982  5687  5687 I A01B06/common/KG: MetaBalls-MetaBallRenderer --> setTimeout over 9s and begin animate on finish
305   11-15 16:04:55.297  5687  5687 I A01B06/common/KG: MetaBalls-MetaBallRenderer --> chargingTextExitAnimation onFinish
306   11-15 16:04:55.494  5687  5687 I A01B06/common/KG: MetaBalls-MetaBallRenderer --> uiExtension session send data success,type: exitAnimationFinish
307   ```
308
309### Displaying Logs of a Specified Tag
310
311   ```
312   hilog -T tag
313   ```
314
315   **Example**
316
317   ```
318   $ hilog -T SAMGR
319   08-28 09:27:59.581   610 11504 I C01800/samgr/SAMGR: CommonEventCollect save extraData 1661
320   08-28 09:27:59.581   610 11504 I C01800/samgr/SAMGR: OnReceiveEvent get action: usual.event.BATTERY_CHANGED code: 0, extraDataId 1661
321   08-28 09:27:59.582   610 11504 I C01800/samgr/SAMGR: DoEvent:4 name:usual.event.BATTERY_CHANGED value:0
322   08-28 09:27:59.582   610 11504 W C01800/samgr/SAMGR: LoadSa SA:10120 AddDeath fail,cnt:1,callpid:610
323   08-28 09:27:59.583   610 11504 I C01800/samgr/SAMGR: LoadSa SA:10120 size:1,count:1
324   08-28 09:27:59.601   610 11504 I C01800/samgr/SAMGR: Scheduler SA:10120 loading
325   08-28 09:27:59.965 11518 11518 I C01800/media_analysis_service/SAMGR: SA:10120 OpenSo spend 315ms
326   08-28 09:27:59.965   610  4064 I C01800/samgr/SAMGR: AddProc:media_analysis_service. size:75
327   ```
328
329### Displaying Logs in the First N Lines of the Buffer
330
331   ```
332   hilog -a 8
333   ```
334
335   **Example**
336
337   ```
338   $ hilog -a 8
339   11-15 16:04:08.628     0     0 I I00000/HiLog: ========Zeroth log of type: init
340   11-15 16:04:08.603   506   506 I I02C01/cust_carrier_mount/CustCarrierMount: MountCarrierToShared start
341   11-15 16:04:08.604   506   506 I I02C01/cust_carrier_mount/CustCarrierMount: success to mount carrier to shared
342   11-15 16:04:15.394   972   972 I I02C01/cust_carrier_mount/CustCarrierMount: UpdateCotaOpkeyLink start
343   11-15 16:04:15.396   972   972 W I02C01/cust_carrier_mount/CustCarrierMount: not exsit CUST_GLOBAL_CARRIER_DIR or COTA_PARAM_CARRIER_DIR
344   11-15 16:04:15.887   972   972 I I02C01/cust_carrier_mount/CustCarrierMount: success to update cota carrier
345   11-15 16:04:48.749  5777  5901 I A00001/com.hiai.core/HiAI_Metadata: metadata is null
346   11-15 16:04:48.749  5777  5901 I A00001/com.hiai.core/HiAI_PluginAbilityInfo: abilityInfo is null
347   ```
348
349### Displaying Logs in the Last N Lines of the Buffer
350
351   ```
352   hilog -z 8
353   ```
354
355   **Example**
356
357   ```
358   $ hilog -z 8
359   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
360   11-15 16:12:19.125  1043  1072 I C01C42/time_service/TimeService: uid: 1010 id:428551571 name:wifi_manager_service wk:0
361   11-15 16:12:19.125  1043  1072 I C01C42/time_service/TimeService: bat: -1 id:428551571 we:505225000000 mwe:512725000000
362   11-15 16:12:19.125  1043  1072 I C01C42/time_service/TimeService: typ:3 trig: 505 225000000, bt: 495230369193
363   11-15 16:12:19.125  1043  1072 I C01C42/time_service/TimeService: cb: 428551571 ret: 0
364   11-15 16:12:19.435  3086  7813 I C01719/com.ohos.contactsdataability/ffrt: 45:~WorkerThread:72 to exit, qos[3]
365   11-15 16:12:19.691   800  1404 I C01713/resource_schedule_service/SUSPEND_MANAGER: [(HasSpecialStateFromBgtask):759] 20020107_com.ohos.medialibrary.medialibrarydata
366   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
367   ```
368
369### Displaying Logs of a Specified Process
370
371   ```
372   hilog -P pid
373   ```
374
375   **Example**
376
377   ```
378   $ hilog -P 618
379   08-28 10:19:16.872   618 17729 I C02D15/hiview/XPower: [task_52]#current system load is: 0.028767
380   08-28 10:19:23.997   618 17580 I C02D10/hiview/CpuCollector: CalculateProcessCpuStatInfos: startTime=1724811553746, endTime=1724811563996, startBootTime=47001084, endBootTime=47011335, period=10251
381   08-28 10:19:23.999   618 17580 I C02D10/hiview/CpuCollector: CollectProcessCpuStatInfos: collect process cpu statistics information size=234, isNeedUpdate=1
382   08-28 10:19:24.002   618 17580 W C01650/hiview/Rdb:  DB :
383   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
384   08-28 10:19:24.002   618 17580 W C01650/hiview/Rdb:  smtime: Wed Aug 28 00:34:30 2024
385   08-28 10:19:24.002   618 17580 W C01650/hiview/Rdb:  sctime: Wed Aug 28 00:34:30 2024
386   ```
387
388### Displaying Logs That Match the Regular Expression Keyword
389
390   ```
391   hilog -e start
392   ```
393
394   **Example**
395
396   ```
397   $ hilog -e start
398   11-15 16:17:17.578   547  4504 I C01800/samgr/SAMGR: AddProc start proc:media_analysis_service spend 223ms
399   11-15 16:17:17.578   547  4504 I C01800/samgr/SAMGR: Scheduler proc:media_analysis_service handle started event
400   11-15 16:17:17.578   547  4504 I C01800/samgr/SAMGR: Scheduler proc:media_analysis_service started
401   11-15 16:17:17.580  8877  8877 I C01810/media_analysis_service/SAFWK: start tasks proc:media_analysis_service end,spend 1ms
402   11-15 16:17:17.582  8877  8877 I C01651/media_analysis_service/DataShare: [operator()()-data_share_manager_impl.cpp:134]: RecoverObs start
403   11-15 16:17:17.589  8877  8893 I C01651/media_analysis_service/DataShare: [Connect()-ams_mgr_proxy.cpp:67]: connect start, uri = ******/media
404   11-15 16:17:18.225  1155  1633 I C02943/power_host/ThermalHdi: CreateLogFile start
405   11-15 16:17:18.264  1155  1633 I C02943/power_host/ThermalHdi: CompressFile start
406   ```
407
408### Displaying and Setting Flushing Tasks
409
410   ```
411   hilog -w control
412   ```
413
414   > **NOTE**
415   >
416   > Run **hilog -w query** to query the current task.
417   >
418   > Run **hilog -w start -n 1000** to start the HiLog flushing task and set the number of flushed files to **1000**.
419   >
420   > Run **hilog -w start -n 100 -t kmsg** to start the kmsglog flushing task and set the number of flushed files to **100**.
421   >
422   > Run **hilog -w stop** to stop the flushing task.
423   >
424   > Run **hilog -w start -t kmsg -f kmsglog -l 2M -n 100 -m zlib** to start the kmsglog flushing task and set the file name to **kmsglog**, size to 2 MB, number of files to **100**, compression mode to **zlib**. The compression mode can be **zlib**, **zstd** or **none**.
425
426   **Example**
427
428   ```
429   $ hilog -w query
430   Persist task query failed
431   No running persistent task [CODE: -63]
432   $
433   $ hilog -w start -n 1000
434   Persist task [jobid:1][fileNum:1000][fileSize:4194304] start successfully
435   $
436   $ hilog -w start -n 100 -t kmsg
437   Persist task [jobid:2][fileNum:100][fileSize:4194304] start successfully
438   $
439   $ hilog -w stop
440   Persist task [jobid:1] stop successfully
441   Persist task [jobid:2] stop successfully
442   $
443   $ hilog -w start -t kmsg -f kmsglog -l 2M -n 100 -m zlib
444   Persist task [jobid:2][fileNum:100][fileSize:2097152] start successfully
445   ```
446
447### Setting the Log Display Format
448
449   ```
450   hilog -v time/color/epoch/monotonic/usec/nsec/year/zone/wrap
451   ```
452
453   **Example**
454
455   ```
456   $ hilog -v time
457   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
458   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
459   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
460   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"
461   11-15 16:36:21.802  2809  2831 E C02D06/com.ohos.sceneboard/XCollie: Send kick,foundation to hungtask Successful
462   11-15 16:36:21.911   882  3016 I C01F0B/telephony/TelephonyVSim: state machine ProcessEvent Id: 125
463   11-15 16:36:21.911   882  3016 I C01F0B/telephony/TelephonyVSim: StateProcess
464   $
465   $ hilog -v nsec
466   11-15 16:37:09.010658555  1134  1723 I C02B01/riladapter_host/HrilExt: [BoosterRawInd-(hril_booster.cpp:296)] RilExt: BoosterRawInd
467   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
468   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
469   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
470   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
471   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
472   ```
473
474### Displaying and Setting Log Levels
475
476   ```
477   // The default global log level is Info.
478   param get param get hilog.loggable.global
479
480   // Set the global log level.
481   hilog -b D/I/W/E/F
482
483   // Set the log level of [DOMAINID].
484   hilog -b D/I/W/E/F -D [DOMAINID]
485
486   // Set the log level of [TAG].
487   hilog -b D/I/W/E/F -T [TAG]
488
489   // Set the global log level. The setting still takes effect after the device is restarted.
490   hilog -b D/I/W/E/F --persist
491   ```
492
493   **Example**
494
495   ```
496   $ param get hilog.loggable.global
497   I
498
499   $ hilog -b E
500   Set global log level to E successfully
501
502   $ hilog -b D -D 0x2d00
503   Set domain 0x2d00 log level to D successfully
504
505   $ hilog -b E -T testTag
506   Set tag testTag log level to E successfully
507   ```
508<!--Del-->
509### Enabling/Disabling the Privacy Format
510
511   ```
512   hilog -p on/off
513   ```
514
515   **Example**
516
517   ```
518   # hilog -p on
519   Set hilog privacy format on successfully
520   #
521   # hilog -p off
522   Set hilog privacy format off successfully
523   ```
524<!--DelEnd-->
525