Logging 101
Configuring Logging
Logging messages generated by the router are sent to the logging process. It controls the distribution of the messages to various destinations. If the logging process is off, then only the console receives log messages. To enable logging, use:
Without this command only the console will receive logs.
Logging Destination
By default, debug information only appears on the console terminal. To show them on the current terminal, use:
By default, unsolicited debug information will interrupt solicited display information. Using synchronous logging, unsolicited debug information will only be displayed after the solicited information is displayed.
Timestamps and Line Numbers
By default, log messages are not time-stamped, but tou can set timestamping using:
Separate settings can be configure for debug messages:
You can also enable the services for adding sequence numbers to the log:
Error message level
0
Emergencies
System unusable
LOG_EMERG
1
Alerts
Immediate action needed
LOG_ALERT
2
Critical
Critical conditions
LOG_CRIT
3
Errors
Error conditions
LOG_ERR
4
Warnings
Warning conditions
LOG_WARNING
5
Notifications
Normal but significant conditions
LOG_NOTICE
6
Informational
Informational messages
LOG_INFO
7
Debugging
Debugging messages
LOG_DEBUG
Additional settings
Logging configuration changes
Monitoring Logs
To see the buffered logs, use:
To see the archive logs, use:
Last updated