未验证 提交 bb9dba5d 编写于 作者: Y yaomanhai 提交者: Gitee

Bugfix: HiLog Dev API & Log Guide description error

Signed-off-by: Nyaomanhao <yaomanhai@huawei.com>
上级 269f22c7
......@@ -218,7 +218,7 @@ Therefore, domain IDs allocated to BT can be further divided as follows:
- **[Rule] The log service controls the log traffic of each service. Changing the default traffic threshold must be approved by the DFX.**
**Note:** The default log traffic threshold of each domain is **2048 KB/s** for an official version and **10240 KB/s** for a trial version. Any change to the default threshold must be approved by the DFX.
**Note:** The default log traffic threshold of each domain ID is **10240 Bytes/s** . Any change to the default threshold must be approved by the DFX.
- **[Rule] Correctly set the log formatting privacy tags {public} and {private}**.
......
......@@ -145,7 +145,7 @@ This development guide is applicable to standard-system devices \(reference memo
</td>
<td class="cellrowborder" valign="top" width="60.31999999999999%" headers="mcps1.2.4.1.3 "><p id="p48419181372"><a name="p48419181372"></a><a name="p48419181372"></a>Initializes log tag parameters.</p>
<p id="p335055115288"><a name="p335055115288"></a><a name="p335055115288"></a>Members:</p>
<a name="ul1235085115287"></a><a name="ul1235085115287"></a><ul id="ul1235085115287"><li><strong id="b1014691044111"><a name="b1014691044111"></a><a name="b1014691044111"></a>domain</strong>: Indicates the service domain of logs.</li><li><strong id="b1843710115416"><a name="b1843710115416"></a><a name="b1843710115416"></a>tag</strong>: Indicates the log tag.</li><li><strong id="b521813144117"><a name="b521813144117"></a><a name="b521813144117"></a>level</strong>: Indicates the log level.</li></ul>
<a name="ul1235085115287"></a><a name="ul1235085115287"></a><ul id="ul1235085115287"><li><strong id="b521813144117"><a name="b521813144117"></a><a name="b521813144117"></a>type</strong>: Indicates the log type.</li><li><strong id="b1014691044111"><a name="b1014691044111"></a><a name="b1014691044111"></a>domain</strong>: Indicates the service domain of logs.</li><li><strong id="b1843710115416"><a name="b1843710115416"></a><a name="b1843710115416"></a>tag</strong>: Indicates the log tag.</li></ul>
</td>
</tr>
</tbody>
......
......@@ -218,7 +218,7 @@ BT内的Domain ID可以进一步划分:
- **【规则】日志服务会对每个业务的日志量进行流量管控,修改默认的流量阈值需要经过评审**
**说明:** 日志服务中会对每个领域的日志流量进行控制,在正式发布的版本上默认每个领域的日志流量阈值是**2048KB/秒**, 在调试版本上默认阈值是**10240KB/秒**, 如果需要修改默认阈值需经过DFX领域审查。
**说明:** 日志服务中会对每个领域的日志流量进行控制,默认每个Domain ID的日志流量阈值是**10240字节/秒**, 如果需要修改默认阈值需经过DFX领域审查。
- **【规则】正确填写日志格式化隐私参数标识{public},{private}**
......
......@@ -34,7 +34,7 @@ HiLog是OpenHarmony日志系统,提供给系统框架、服务、以及应用
| | int&nbsp;Error(const&nbsp;HiLogLabel&nbsp;&amp;label,&nbsp;const&nbsp;char&nbsp;\*fmt,&nbsp;...) | 功能:输出&nbsp;error&nbsp;级别日志。<br/>参数说明同&nbsp;Debug&nbsp;接口。 |
| | int&nbsp;Fatal(const&nbsp;HiLogLabel&nbsp;&amp;label,&nbsp;const&nbsp;char&nbsp;\*fmt,&nbsp;...) | 功能:输出&nbsp;fatal&nbsp;级别日志。<br/>参数说明同&nbsp;Debug&nbsp;接口。 |
| | boolean&nbsp;IsLoggable(unsigned&nbsp;int&nbsp;domain,&nbsp;const&nbsp;char&nbsp;\*tag,&nbsp;LogLevel&nbsp;level) | 功能:检查指定业务领域、TAG、级别的日志是否可以打印。<br/>输入参数:<br/>-&nbsp;domain:指定日志业务领域。<br/>-&nbsp;tag:&nbsp;指定日志TAG。<br/>-&nbsp;level:&nbsp;指定日志level。<br/>输出参数:无<br/>返回值:如果指定domain、tag、level日志可以打印则返回true;否则返回false。 |
| HiLogLabel | struct&nbsp;HiLogLabel | 功能:初始化日志标签参数。<br/>成员参数:<br/>-&nbsp;domain:指定日志业务领域。<br/>-&nbsp;tag:&nbsp;指定日志TAG。<br/>-&nbsp;level:&nbsp;指定日志level。 |
| HiLogLabel | struct&nbsp;HiLogLabel | 功能:初始化日志标签参数。<br/>成员参数:<br/>-&nbsp;type:&nbsp;指定日志type。<br/>-&nbsp;domain:指定日志业务领域。<br/>-&nbsp;tag:&nbsp;指定日志TAG。 |
## 开发实例
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册