logging event

To log interface events, use the logging event command. To disable logging of interface events, use the no form of this command.

logging event port { link-status | trunk-status } { default | enable }

no logging event port { link-status | trunk-status } { default | enable }

Syntax Description

link-status
Specifies to log all UP/DOWN and CHANGE messages.
trunk-status
Specifies to log all TRUNK status messages.
default
Specifies to the default logging configuration is used by interfaces not explicitly configured.
enable
Enables the logging to override the port level configuration.

Command Default

None

Command Modes

Global configuration mode

Command History

Release
Modification
4.0(0)N1(1a)
This command was introduced.

Examples

This example shows how to log interface events:

switch# configure terminal
switch(config)# logging event link-status default
 

Related Commands

Command
Description
show logging
Displays the logging status.