Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure Log Display Colors

Configuration Condition

None

Configure Log Display Colors

When log information is displayed, you can modify log information of different levels so that they are displayed in different colors. In this way, the importance degrees of logs are distinguished. By default, the log display color function is enabled. The following table shows the default colors corresponding to the log levels.

Table 9-14 Description of Log Colors

Field

Description

emergencies

Red

alerts

Purple

alerts

Blue

errors

Brown

warnings

Cyan

notifications

White

informational

Green

debugging

Green

 

Table 9-15 Configuring Log Display Colors

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Configure a color for logs of a level.

logging color [ logging-level  logging-color ]

Optional.

By default, each log level has a corresponding log display color.

note


  • If the control console or monitor console needs to output log information in different colors, you need to configure the color option of the terminals; otherwise, no color is displayed for the log information.