logging trap
To specify the severity level of messages logged to system logging (syslog) servers, use the
logging trap
command in global configuration mode. To restore the default behavior, use the
no
form of this command.
logging trap
[
severity
]
no logging trap
Syntax Description
(Optional) Severity level of messages logged to the syslog servers, including events of a
higher severity level (numerically lower). The default is
informational
. Settings for the
severity levels and their respective system conditions are listed under
Levels for Messages, on page 312
in the
“
Usage Guidelines
”
section for the
logging buffered
command.
severity
Command Default
severity
:
informational
Command Modes
Global configuration
Command History
Modification
Release
This command was introduced.
Release 3.2
Usage Guidelines
Use the
logging trap
command to limit the logging of messages sent to syslog servers to only those messages
at the specified level.
Table 29: Severity Levels for Messages, on page 312
under the
“
Usage Guidelines
”
section for the
buffered, on page 312
command lists the syslog definitions that correspond to the debugging message levels.
Use the
logging, on page 308
command to specify a syslog server host as a destination for syslog messages.
Task ID
Operations
Task ID
read, write
logging
Examples
This example shows how to restrict messages to
notifications
(5) and numerically lower levels.
RP/0/0/CPU0:router(config)#
logging trap notifications
Cisco IOS XR System Monitoring Command Reference for the Cisco XR 12000 Series Router, Release 4.1
OL-24735-01
339
Logging Services Commands
logging trap