< Home

Configuring the FW to Output Logs to a Log Buffer

If you want to view logs generated on the FW in the log buffer, you can configure the FW to output logs to the log buffer.

Context

By default, the information center enables the function of outputting logs to the log buffer. Logs are output to the log buffer over information channel 4. You can change the information channel over which logs are output to the log buffer and adjust the capacity of the log buffer.

Procedure

  1. Access the system view.

    system-view

  2. Add log information to the information channel.

    info-center source { module-name | default } channel { channel-number | channel-name } log { state { off | on } | level severity } *

  3. Optional: Specify the information channel through which logs are output to the log buffer.

    info-center logbuffer channel { channel-number | channel-name }

    By default, channel 4 is used.

  4. Optional: Set the log buffer size.

    info-center logbuffer size buffersize

    By default, the log buffer contains a maximum of 512 logs.

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