< Home

Configuring the Device to Output Logs to the Log Buffer

Context

To view logs in the log buffer, configure the device to output logs to the log buffer.

Procedure

  1. Run system-view

    The system view is displayed.

  2. 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.

  3. 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.

  4. 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.

  5. (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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >