
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
14-19
Cisco MDS 9000 Family Command Reference
OL-18089-01, Cisco MDS NX-OS Release 4.x
Chapter 14 L Commands
logging logfile
logging logfile
To set message logging for logfile
,
use the
logging logfile
command.To negate the previously issued
command or to revert to factory defaults, use the
no
form of the command.
logging logfile
filename
severity-level
[
size
filesize
]
no logging logfile
filename
severity-level
[
size
filesize
]
Syntax Description
Defaults
None.
Command Modes
Configuration mode.
Command History
Usage Guidelines
The switch logs messages at or above the configured severity level.
Examples
The following example configures logging information for errors or events above a severity level of 3
(errors) to be logged in a file named ManagerLogFile. By configuring this limit, the file size is restricted
to 3,000,000 bytes:
switch#
config terminal
switch(config)#
logging logfile ManagerLogFile 3 size 3000000
Related Commands
filename
Specifies the log filename. Maximum length is 80 characters.
severity-level
Specifies the maximum severity of messages logged. The range is 0 to 7,
where 0 is emergency, 1 is alert, 2 is critical, 3 is error, 4 is warning, 5 is
notify, 6 is informational, and 7 is debugging.
size
filesize
Specifies the log file size. The range is 4096 to 4194304 bytes.
Release
Modification
1.0(2)
This command was introduced.
Command
Description
show logging
Displays logging configuration information.