log
Command Function
This command is used to modify and query log configurations.
Syntax
log level [levelNum]
Parameters
Table 1 Parameter description
Usage
-
This command depends on LOSCFG_SHELL_LK. Before using this command, select Enable Shell lk on 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 will be displayed.
-
If the [levelNum] parameter is not specified, the current log level and its usage are printed by default.
Example
Example:
Run log level 4.