Chapter 4
| System Management Commands
Event Logging
– 168 –
Command Usage
The logging process controls error messages saved to switch memory or sent to
remote syslog servers. You can use the logging history command to control the
type of error messages that are stored in memory. You can use the logging trap
command to control the type of error messages that are sent to specified syslog
servers.
Example
Console(config)#logging on
Console(config)#
Related Commands
logging history (166)
logging trap (168)
clear log (169)
logging trap This command enables the logging of system messages to a remote server, or
limits the syslog messages saved to a remote server based on severity. Use this
command without a specified level to enable remote logging. Use the no form to
disable remote logging.
Syntax
logging trap [level level]
no logging trap [level]
level - One of the syslog severity levels listed in the table on page 166.
Messages sent include the selected level through level 0.
Default Setting
Disabled
Level 7
Command Mode
Global Configuration
Command Usage
â—† Using this command with a specified level enables remote logging and sets the
minimum severity level to be saved.
â—† Using this command without a specified level also enables remote logging, but
restores the minimum severity level to the default.
Example
Console(config)#logging trap level 4
Console(config)#