CÔNG TY TNHH CÔNG NGHỆ VIỆT THÁI DƯƠNG
Logo CNTTShop.vn

NTT03, Line 1, Thống Nhất Complex, Thanh Xuân, Hà Nội.
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.