< Home

log-record-level

Function

The log-record-level command configures the level for AP logs that need to be backed up.

The undo log-record-level command restores the default level of AP logs that need to be backed up.

By default, the level of AP logs that need to be backed up is info.

Format

log-record-level { alert | critical | debug | emergency | error | info | notice | warning }

undo log-record-level

Parameters

Parameter

Description

Value

alert

Configures the level of logs as alert, that is, the AP backs up logs that need to be processed immediately.

-

critical

Configures the level of logs as critical, that is, the AP backs up critical logs.

-

debug

Configures the level of logs as debug, that is, the AP backs up debugging logs.

-

emergency

Configures the level of logs as emergency, that is, the AP backs up unavailable logs.

-

error

Configures the level of logs as error, that is, the AP backs up error logs.

-

info

Configures the level of logs as info, that is, the AP backs up normal logs.

-

notice

Configures the level of the logs as notice, that is, the AP backs up logs that need to be noticed.

-

warning

Configures the level of logs as warning, that is, the AP backs up warning logs.

-

Views

AP system profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An AP periodically backs up logs to the log server. However, not all the logs need to be backed up. You can run the log-record-level command to configure the level of logs to be periodically backed up.

Precautions

The preference order of log levels is emergency, alert, critical, error, warning, notice, info, and debug.

After you specify the level for AP logs that need to be backed up, all logs of the specified level or a higher level will be backed up. For example, if you set the level of AP logs that need to be backed up to critical, the logs of the levels emergency, alert, and critical will be backed up.

Example

# Set the level of logs that need to be backed up as alert.

<HUAWEI> system-view
[HUAWEI] wlan 
[HUAWEI-wlan-view] ap-system-profile name ap-system1
[HUAWEI-wlan-ap-system-prof-ap-system1] log-record-level alert
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >