CLI Guide

Switch Management Commands 2253
User Guidelines
The logging file command controls the minimum severity for which system
messages are logged to the flash file system. Messages are flushed to the file
system on every write. It is not recommended to use any setting other than
the default unless debugging a specific issue. Using a severity other than the
default may shorten the lifespan of the switch as the flash supports a limited
number of write cycles and a limited number of spare blocks.
Debug level messages are intended for use by support personnel. The output
is voluminous, cryptic, and because of the large number of messages
generated, can adversely affect switch operations. Only set the logging level to
debug under the direction of support personnel.
Example
The following example limits SYSLOG messages stored in the logging file to
severity level “warnings” and above (numerically lower).
console(config)#logging file warnings
logging monitor
Use the logging monitor command in Global Configuration mode to enable
logging messages to telnet and SSH sessions at the specified severity level.
Use the no logging monitor command to disable logging messages.
Syntax
logging monitor <severity>
no logging monitor
severity—(Optional) The number or name of the desired severity level.
Range:
[0 | emergencies]
[1 | alerts]
[2 | critical]
[3 | errors]
[4 | warnings]
[5 | notifications]