Configuration example for outputting logs to the console

Network requirements

Configure the device to output to the console FTP logs that have a severity level of at least warning.

Figure 93: Network diagram

Configuration procedure

# Enable the information center.

<Device> system-view
[Device] info-center enable

# Disable log output to the console.

[Device] info-center source default console deny

To avoid output of unnecessary information, disable all modules from outputting log information to the specified destination (console in this example) before you configure the output rule.

# Configure an output rule to output to the console FTP logs that have a severity level of at least warning.

[Device] info-center source ftp console level warning
[Device] quit

# Enable the display of logs on the console. (This function is enabled by default.)

<Device> terminal logging level 6
<Device> terminal monitor
The current terminal is enabled to display logs.

Now, if the FTP module generates logs, the information center automatically sends the logs to the console, and the console displays the logs.