◆ V2TIMSDKConfig()
Configuration class constructor
◆ 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
-
◆ getLogLevel()
◆ getLogListener()
Get the current log callback listener
◆ setLogListener()
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.
◆ 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