Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)

Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Enables module log messages that have the specified severity
level or higher. Severity levels range from 0 to 7:
switch(config)# logging module
[severity-level]
Step 2
0 emergency
1 alert
2 critical
3 error
4 warning
5 notification
6 informational
7 debugging
If the severity level is not specified, the default of 5 is used.
Enables logging messages from the specified facility that have
the specified severity level or higher. Severity levels from 0
to 7:
switch(config)# logging level
facility severity-level
Step 3
0 emergency
1 alert
2 critical
3 error
4 warning
5 notification
6 informational
7 debugging
To apply the same severity level to all facilities, use the all
facility. For defaults, see the show logging level command.
(Optional)
Disables module log messages.
switch(config)# no logging
module [severity-level]
Step 4
(Optional)
Resets the logging severity level for the specified facility to
its default level. If you do not specify a facility and severity
level, the switch resets all facilities to their default levels.
switch(config)# no logging level
[facility severity-level]
Step 5
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
340 OL-16597-01
Configuring System Message Logging
Configuring Module and Facility Messages Logging