system set-log
To set the log level and log type of messages, use the system set-log command in privileged EXEC mode.
system set-log level {debug | info | warning | error | critical} logtype {configuration | operational | all}
Syntax Description
level |
Specifies the log level. |
debug |
Logs all messages. |
info |
Logs all messages that have info and higher severity level. |
warning |
Logs all messages that have warning and higher severity level. |
error |
Logs all messages that have error and higher severity level. |
critical |
Logs all messages that have critical severity level. |
logtype |
Specifies the log type. |
configuration |
Configuration log messages are recorded. |
operational |
Operational log messages are recorded. |
all |
All types of log messages are recorded. |
Command Default
For the configuration log, info is the default level. For the operational log, warning is the default level.
Command Modes
Privileged EXEC (#)
Command History
Release | Modification |
---|---|
3.5.1 |
This command was introduced. |
Usage Guidelines
After a system reboot, the modified logging configuration is reset to the default level, that is, info for the configuration log and warning for the operational log.
Examples
The following example shows how to configure a log level:
nfvis# system set-log level error logtype all