< Home

Outputting Debugging Information to Log Files

If you want to save debugging information as files on the FW, you can configure the FW to output debugging information to log files.

Context

After this configuration, debugging information is output to log files and saved on the FW. You can view the debugging information to know the operating status of the FW.

Procedure

  1. Access the system view.

    system-view

  2. Add the debugging information to the information channel.

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

  3. Optional: Specify an information channel through which debugging information is output to log files.

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

    By default, channel 9 is used.

  4. Optional: Set the log file size.

    info-center logfile size size

    By default, the log file size is 8 MB.

  5. Optional: Set the maximum number of log files.

    info-center max-logfile-number filenumbers

    By default, the FW can save a maximum of 200 log files.

    If more log files are generated, the system deletes the earliest log files, ensuring that the number of log files is smaller than or equal to the threshold.

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