Logger
Sendbird Chat SDK for Android offers a logging system that allows you to keep track of a number of events and activities including data flow, error, and information while running your app. You can closely monitor the operation of the Sendbird SDK and improve debug efficiency using our logging system.
Log levels
Sendbird Chat SDK's logger is based on the log levels classified by Android. Log levels can be used to categorize and control log outputs. There are a total of six log levels, which are ALL
(verbose), DEBUG
, INFO
, WARN
, ERROR
, and NONE
. Apart from NONE
, the other five log levels take precedence over the other in the following order: ALL
(verbose) > DEBUG
> INFO
> WARN
> ERROR
. If you would rather not use the logger, you can select NONE
to opt out of recording SendbirdChat
logs.
Level | Description |
---|---|
NONE | No logs recorded. |
ALL | Logs detailed information about all events and activities, including the log messages in |
DEBUG | Logs what's happening inside the SDK that could be helpful to debug unexpected behaviors, as well as the log messages in |
INFO | Logs the general events that take place in the Sendbird SDK, as well as the log messages in |
WARN | Logs unexpected events which wouldn’t affect the operation of Sendbird SDK but might cause other issues. This log level also shows the log messages in |
ERROR | Logs things that have caused failures in specific events, but not an SDK-wide failure. |
Note: If an unexpected behavior is caused by a user's mistake or environmental factors, the behavior is classified as
WARN
. If it is due to the Sendbird SDK or Sendbird internal operations, it is classified asERROR
.
How to configure the log level
The default log level set for Sendbird Chat SDK for Android is LogLevel.WARN
, which means that Sendbird Chat SDK keeps logs of both errors and warning messages. You can change the settings through the logLevel
property in the InitParams
class and pass it on when initializing the SDK as follows.
Parameter | Type | Description |
---|---|---|
logLevel | LogLevel | Specifies the severity level of the log to retrieve. One takes precedence over the other in the order of |
Log filtering
All Sendbird Chat SDK log messages start with SendbirdChat
. If you want to see the log messages from Sendbird Chat SDK, search for messages with the keyword SendbirdChat
.