System Management Commands

4-43

4
Event Logging Commands

logging on

This command controls logging of error messages, sending debug or er ror
messages to switch memory. The no form disables the logging process.
Syntax
[no] logging on
Default Setting
None
Command Mode
Global Configuration
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-44)
clear logging (4-46)
Table4-17. E vent Logging Commands
Command Function Mode Page
logging on Controls logging of error messages GC 4-43
logging history Limits syslog messages saved to switch memory based on
severity
GC 4-44
logging host Adds a syslog server h ost IP address that will receive logging
messages
GC 4-45
logging facility Sets the facility type for remote loggi ng of syslog messages GC 4-45
logging trap Limits syslog messages saved to a remote server bas ed on
severity
GC 4-46
clear logging Clears messages from the logging buffer PE 4-46
show log Displays log messages PE 4-47
show logging Displa ys the state of logging configuration PE 4-48
Console(config)#logging on
Console(config)#