IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMSDKConfig

Public Member Functions

 V2TIMSDKConfig ()
 
void setLogLevel (int logLevel)
 
int getLogLevel ()
 
V2TIMLogListener getLogListener ()
 
void setLogListener (V2TIMLogListener logListener)
 

Static Public Attributes

static final int V2TIM_LOG_NONE = 0
 
static final int V2TIM_LOG_DEBUG = 3
 
static final int V2TIM_LOG_INFO = 4
 
static final int V2TIM_LOG_WARN = 5
 
static final int V2TIM_LOG_ERROR = 6
 

Constructor & Destructor Documentation

◆ V2TIMSDKConfig()

V2TIMSDKConfig ( )
inline

Configuration class constructor

Member Function Documentation

◆ setLogLevel()

void setLogLevel ( int  logLevel)
inline

Set the log level. This operation must be performed before the Chat SDK is initialized.

Parameters
logLevelLog level

◆ getLogLevel()

int getLogLevel ( )
inline

◆ getLogListener()

V2TIMLogListener getLogListener ( )
inline

Get the current log callback listener

◆ setLogListener()

void setLogListener ( V2TIMLogListener  logListener)
inline

Set the current log callback listener. This operation must be performed before the Chat SDK is initialized.

Attention
Because callbacks are triggered in the main thread and log callbacks can occur frequently, do not execute time-consuming tasks synchronously in a callback, or the main thread may be blocked.

Field Documentation

◆ V2TIM_LOG_NONE

final int V2TIM_LOG_NONE = 0
static

Do not output any SDK logs

◆ V2TIM_LOG_DEBUG

final int V2TIM_LOG_DEBUG = 3
static

Output logs at the DEBUG, INFO, WARNING, and ERROR levels

◆ V2TIM_LOG_INFO

final int V2TIM_LOG_INFO = 4
static

Output logs at the INFO, WARNING, and ERROR levels

◆ V2TIM_LOG_WARN

final int V2TIM_LOG_WARN = 5
static

Output logs at the WARNING and ERROR levels

◆ V2TIM_LOG_ERROR

final int V2TIM_LOG_ERROR = 6
static

Output logs at the ERROR level