22-2
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter22 Configuring System Message Logging
Configuring System Message Logging
Configuring System Message Logging
These sections describe how to configure system message loggin g:
System Log Message Format, page 22-2
Default System Message Logging Configuration, page 22-3
Disabling and Enabling Message Logging, page 22-4
Setting the Message Display Destination Device, page 22-4
Synchronizing Log Messages, page 22-5
Enabling and Disabling Time Stamps on Log Messages, page 22-7
Enabling and Disabling Sequence Numbers in Log Messages, page 22-7
Defining the Message Severity Level, page 22-8
Limiting Syslog Messages Sent to the History Table and to SNMP, page 22-9
Configuring UNIX Syslog Servers, page 22-10

System Log Message Format

System log messages can contain up to 80 characters a nd a percent sign (%), which follows the optional
sequence number or time-stamp information, if configured. Messages appear in this form at:
seq no:timestamp: %facility-severity-MNEMONIC:description
The part of the message preceding the percent sign depends on the setting of the service
sequence-numbers, service timestamps log datetime, service timestamps log datetime [localtime]
[msec] [show-timezone], or service timestamps log uptime global configuration command.
Table22-1 describes the elemen ts of syslog messag es.
Table22-1 System Log Message Elements
Element Description
seq no: Stamps log messages with a sequence number only if the service sequence-numbers global
configuration command is configured.
For more information, see the “Enabling and Disabling Sequence Numbe rs in L og M ess ag es”
section on page 22-7.
timestamp formats:
mm/dd hh:mm:ss
or
hh:mm:ss (short uptime)
or
d h (long uptime)
Date and time of the message or event. This information appears only if the service timestamps
log [datetime | log] global configuration command is configured.
For more information, see the “Enabling and Disabling Time Stamps on Log Messages” se ctio n
on page 22-7.
facility The facility to which the message refers (for example, SNMP, SYS, and so forth). For a list of
supported facilities, see Table22-4 on page 22-11.
severity Single-digit code from 0 to 7 that is the severity of the message. For a descr ipti on of th e severity
levels, see Table22-3 on page 22-8.