Sendbird Chat SDK for iOS 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 application. You can closely monitor the operation of the Sendbird SDK and improve debug efficiency using our logging system.
Log types, or log levels, can be used to categorize and control log outputs. The following table lists four different log types for the logger in Sendbird Chat SDK for iOS.
No logs recorded.
Logs what have caused failures in the specific events, but not an SDK-wide failure.
Logs unexpected events which wouldn’t affect the operation of Chat SDK, but might cause problems.
Logs general events of Chat SDK.
The default log type set for Sendbird Chat SDK for iOS is
SBDLogLevelWarning, which means that Sendbird SDK will keep logs of warning messages. You can change the settings through the
setLoggerLevel() method in the
SBDMain class as follows:
Specifies the severity level of log to retrieve. One takes precedence over the other in the order of SBDLogLevelNone, SBDLogLevelError, SBDLogLevelWarning, and SBDLogLevelInfo.
All Sendbird Chat SDK log messages are tagged with
[Sendbird]. If you want to see the log messages from Sendbird Chat SDK, search for the messages with a keyword
The following logs show how to read Sendbird Chat SDK logs.