/ SDKs / Unity
SDKs
Chat SDKs Unity v4
Chat SDKs Unity
Chat SDKs
Unity
Version 4

Logger

Copy link

Sendbird Chat SDK for Unity 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 Chat SDK and improve debug efficiency using our logging system.


Log levels

Copy link

Log levels can be used to categorize and control log outputs. The following table lists five different log levels available in the logger in Sendbird Chat SDK for Unity.

TypeDescription

None

No logs recorded.

Error

Logs what have caused failures in the specific events, but not an SDK-wide failure.

Warning

Logs unexpected events which wouldn’t affect the operation of Chat SDK, but might cause problems.

Verbose

Logs all the details of the events and activities, including log messages in Error, Warning, and Info.

Info

Logs general events of Chat SDK.


How to configure the log type

Copy link

The default log type set for Sendbird Chat SDK for Unity is SbLogLevel.none. You can change the settings through the SetLogLevel() method in the SendbirdChat class as follows.

SendbirdChat.SetLogLevel(SbLogLevel.Info);
ParameterTypeDescription

inLogLevel

SbLogLevel

Specifies the severity level of log to retrieve. One takes precedence over the other in the order of None, Error, Warning, and Info.