log
Command Function
This command is used to modify and query log configurations.
Syntax
log level [levelNum]
Parameter Description
Table 1 Parameters
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.