目录

class info


Class info

com.huawei.hms.analytics.HiAnalyticsTools

Provides methods for opening debug logs to support debugging during the development phase.

Public Method Summary

Qualifier and Type

Method Name and Description

static void


enableLog

Enables the debug log function.

static void


enableLog(int level)

Enables debug log recording and set the minimum level of recorded logs.

Public Methods

enableLog

Method

public static void enableLog()

Enables the debug log function.

enableLog(int level)

Method

public static void enableLog(int level)

Enables debug log recording and set the minimum level of recorded logs.

Debug log:

  • Log.DEBUG(3)

  • Log.INFO(4)

  • Log.WARN(5)

  • Log.ERROR(6)

Parameters

NameDescription

level

Level of recorded debug logs.

Log level:Log.DEBUG,Log.INFO,Log.WARN,Log.ERROR.