Configuring the Device to Output Logs to the Log Buffer
Procedure
- Run system-view
The system view is displayed.
- Run info-center logbuffer
The device is enabled to output information to the log buffer.
By default, the device is enabled to output logs to the log buffer.
- Run info-center logbuffer channel { channel-number | channel-name }
The channel used by the device to output logs to the log buffer is specified.
By default, the device uses channel 4 to output logs to the log buffer.
- Run info-center source { module-name | default } channel { channel-number | channel-name } log { state { off | on } | level severity } *
A rule for outputting logs to a channel is set.
By default, channel 4 is enabled to output logs and the lowest log severity is warning.
- (Optional) Run info-center logbuffer size logbuffer-size
The maximum number of logs in the log buffer is set.
By default, a log buffer can store a maximum of 512 logs.