Chapter
System Management Commands
S e n d c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
logging logfile
To configure the name of the log file used to store system messages and the minimum severity level to
log, use the logging logfile command. To disable logging to the log file, use the no form of this
command.
Syntax Description
logfile-name
severity-level
size bytes
Command Default
None
Command Modes
Global configuration mode
Command History
Release
5.0(3)U1(1)
Examples
This example shows how to configure a log file called logfile to store system messages and set its
severity level to 4:
switch# configure terminal
switch(config)# logging logfile logfile 4
switch(config)#
OL-29557-04
logging logfile logfile-name severity-level [size bytes]
no logging logfile [logfile-name severity-level [size bytes]]]
Name of the log file to be used to store system messages.
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:
•
•
•
•
•
•
•
•
(Optional) Specifies a maximum file size. The default file size is 4194304
bytes and can be configured from 4096 to 4194304 bytes.
Modification
This command was introduced.
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
Cisco Nexus 3000 Series NX-OS System Management Command Reference
logging logfile
-SM-109