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.
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
NONE. Apart from
NONE, the other five log levels take precedence over the other in the following order:
ALL (verbose) >
ERROR. If you would rather not use the logger, you can select
NONE to opt out of recording
No logs recorded.
Logs detailed information about all events and activities, including the log messages in
Logs what's happening inside the SDK that could be helpful to debug unexpected behaviors, as well as the log messages in
Logs the general events that take place in the Sendbird SDK, as well as the log messages in
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
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 as
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.
Specifies the severity level of the log to retrieve. One takes precedence over the other in the order of
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