1 Star 0 Fork 5.1K

mayongdong / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
log.md 2.82 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

log

Command Function

This command is used to modify and query log configurations.

Syntax

log level [levelNum]

Parameter Description

Table 1 Parameters

Parameter

Description

Value Range

levelNum

Indicates the print level of configuration logs.

[0x0, 0x5]

Usage

  • This command depends on LOSCFG_SHELL_LK. Before running this command, enable the Enable Shell lk configuration item using menuconfig.

    Debug ---> Enable a Debug Version ---> Enable Shell ---> Enable Shell lK

  • The log level command is used to configure log levels, which can be:

    TRACE_EMG = 0,

    TRACE_COMMON = 1,

    TRACE_ERROR = 2,

    TRACE_WARN = 3,

    TRACE_INFO = 4,

    TRACE_DEBUG = 5

    If the level is not within the valid range, a message is printed.

  • If the [levelNum] parameter is not specified, the current log level and its usage are printed by default.

Example

Enter log level 4.

Output

1
https://gitee.com/mayongdongsmile/docs.git
git@gitee.com:mayongdongsmile/docs.git
mayongdongsmile
docs
docs
master

搜索帮助