< Home

info-center logfile

Function

The info-center logfile command sets outputting the information to a log file through a specified channel.

The undo info-center logfile command restores the default configuration.

Format

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

undo info-center logfile channel

Parameters

Parameter Description Value
channel-number Specifies the channel number. In the range of 0 to 9, that is, there are 10 channels in the system.
channel-name Specifies a channel name. The name is a string of 1 to 30 case-insensitive characters, spaces not supported.

Views

System view

Default Level

3: Management level

Usage Guidelines

This command takes effect only after the information center is enabled.

By default, channel 9 is used.

  • The log file is saved in the hda1:/log/ directory. You can view the log file by running the dir hda1:/log/ command in the user view.

Example

# Output the information to a log file through the channel6.

<sysname> system-view
[sysname] info-center logfile channel channel6
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >