Help Center/ Huawei HiLens/ SDK Reference/ Log/ Setting the Log Levels
Updated on 2023-06-15 GMT+08:00

Setting the Log Levels

This section describes how to set the log levels.

API Calling

void hilens::SetLogLevel(LogLevel level)

Parameter Description

Table 1 Parameters

Parameter

Description

level

Log level. The value can be Trace, Debug, Info, Warning, Error, or Fatal.

enum hilens::LogLevel

Refer to Table 2 for the enumerated values.

Table 2 Enumerated Value

Log Level

Description

TRACE

Logs of the Trace level or higher

DEBUG

Logs of the Debug level or higher

INFO

Logs of the Info level or higher

WARNING

Logs of the Warning level or higher

ERROR

Logs of the Error level or higher

FATAL

Logs of the Fatal level

Return Value

None