L Commands
logging console
242
Cisco Nexus 7000 Series NX-OS System Management Command Reference
OL-25806-03
logging console
To enable logging messages to the console session, use the logging console command. To disable
logging messages to the console session, use the no form of this command.
logging console [severity-level]
no logging console
Syntax Description
Defaults None
Command Modes Global configuration mode
Supported User Roles network-admin
vdc-admin
Command History
Usage Guidelines This command does not require a license.
Examples This example shows how to enable logging messages with a severity level of 4 (warning) or higher to
the console session:
switch# configure terminal
switch(config)# logging console 4
switch(config)#
severity-level (Optional) Number of the desired severity level at which messages should be
logged. Messages at or numerically lower than the specified level are logged.
Severity levels are as follows:
• 0—emergency: System unusable
• 1—alert: Immediate action needed
• 2—critical: Critical condition—default level
• 3—error: Error condition
• 4—warning: Warning condition
• 5—notification: Normal but significant condition
• 6—informational: Informational message only
• 7—debugging: Appears during debugging only
Release Modification
4.0(1) This command was introduced.