Command Line Interface
4-42
4
Command Usage
The logging process controls error messages saved to switch memory. You
can use the logging history command to control the type of error messages
that are stored.
Example
Related Commands
logging history (4-42)
clear logging (4-44)
logging history
This command limits syslog messages saved to switch memory based on severit y.
The no form returns the logging of syslog messages to the default level.
Syntax
logging history {flash | ram} level
no logging history {flash | ram}
flash - Event history stored in flash memory (i.e., permanent memory).
ram - Event history stored in temporary RAM (i.e., memory flushed on
power reset).
level - One of the level arguments listed below. Messages sent incl ude the
selected level down to level 0. (Range: 0-7)
Default Setting
Flash: errors (level 3 - 0)
RAM: warnings (level 7 - 0)
Console(config)#logging on
Console(config)#
Table4-17. Logging Messag es
Level Argument Level Description
debugging 7 Debug ging messages
informational 6 Informational messages only
notifications 5 Normal but significa nt condition, such as cold start
warnings 4 Warning conditions (e.g., return false, unexpected return)
errors 3 Err or conditions (e.g., invalid input, default used)
critical 2 Critical conditions (e.g., memory allocation, or free
memory error - resource exhausted)
alerts 1 Immediate action needed
emergencies 0 System unusable
* There are only Level 2, 5 and 6 error messages for the current firmwa re release.