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|
|alerts||1||Immediate Action Needed||LOG_ALERT|
|notifications||5||Normal but significant condition||LOG_NOTICE|
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