![](/images/new-backgrounds/1267480/267480371x1.webp)
COMMAND LINE INTERFACE
logging trap
Use this command to limit syslog messages saved to a remote server based on severity. Use the no form to return the remote logging of syslog messages to the default level.
Syntax
logging trap level no logging trap level
level - One of the level arguments listed below. Messages sent include the selected level up through level 0.
Level Argument | Level | Description | Syslog Definition |
emergencies | 0 | System unusable | LOG_EMERG |
|
|
|
|
alerts | 1 | Immediate action needed | LOG_ALERT |
|
|
|
|
critical | 2 | Critical conditions | LOG_CRIT |
|
|
|
|
errors | 3 | Error conditions | LOG_ERR |
|
|
|
|
warnings | 4 | Warning conditions | LOG_WARNING |
|
|
|
|
notifications | 5 | Normal but significant | LOG_NOTICE |
|
| condition |
|
|
|
|
|
informational | 6 | Informational messages | LOG_INFO |
|
| only |
|
|
|
|
|
debugging | 7 | Debugging messages | LOG_DEBUG |
|
|
|
|
Default Setting
Level 3 - 0
Command Mode
Global Configuration
Example
Console(config)#logging trap 4
Console(config)#