Setting Log Levels
Overview
Logs record the runtime status of the operating environment and the processing of functional processes, which serves as a way to check the system status and locate faults for maintenance personnel. The log module records logs of different levels based on the log levels set by the system to meet different system maintenance requirements.
The log levels are listed in ascending order as follows: DEBUG < INFO < WARNING < ERROR. A lower level indicates a more detailed output log.
|
Log Level |
Description |
|---|---|
|
0: DEBUG |
Debug level. Logs at this level record the debugging information for R&D or maintenance personnel to locate faults. |
|
1: INFO |
Normal level. Logs at this level record information about proper system running. |
|
2: WARNING |
Warning level. Logs at this level record information when the system does not run in an expected state, but the running of the system is not affected. |
|
3: ERROR |
Common error level. Logs at this level record the following errors:
|
|
4: NULL |
NULL level. No log is generated. |
The default level of debug logs is ERROR, and the log level can be adjusted. The default level of security logs is DEBUG, and that of run logs is INFO, but the log levels cannot be adjusted.
The following describes how to set the log level..