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 write log level. This operation must be performed before IM SDK initialization. Otherwise, the setting does not take effect.

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 IM SDK initialization.

Attention
The callback is in the main thread. Log callbacks can be quite frequent, so be careful not to synchronize too many time-consuming tasks in the callback, which may block the main thread.

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