Devices can generate large amounts of information.
The information can be sent to the device logging buffer, onto the console screen, or to a syslog server. Different logging levels can be set for all three.
Level Definition | Level | Description | syslog Definition |
emergencies | 0 | System Unstable | LOG_EMERG |
alerts | 1 | Immediate Action Needed | LOG_ALERT |
critical | 2 | Critical Condition | LOG_CRIT |
errors | 3 | Error Condition | LOG_ERR |
warnings | 4 | Warning Condition | LOG_WARNING |
notifications | 5 | Normal but significant condition | LOG_NOTICE |
informational | 6 | Informational Message | LOG_INFO |
debugging | 7 | Debugging Message | LOG_DEBUG |
Logging to Memory Buffer
Logging can be enabled to the buffer with the command logging buffer
followed by the logging level chosen numerically (0-7) or by definition (debugging, errors, alerts)
The default size of the logging buffer is only 4096 bytes, so it is a good idea to extend it with the command logging buffer
followed by the size in bytes.
Logging to Syslog Server
Logging to a syslog server can be carried out with the command logging host
followed by the IP address of the host
To modify the logging level used with syslog, use the command logging trap
followed by the logging level of detail required numerically
Leave a Reply