To configure the Service Chat SDK logs, set the level property on the ServiceLogger shared
instance.
Use the shared singleton on ServiceLogger to adjust the level.
In Swift:
ServiceLogger.shared.level = .debug
In Objective-C:
[SCServiceLogger sharedLogger].level = SCSLoggerLevelDebug;
The log level is specified using the SCSLoggerLevel enumerated type. It can be one of these values:
- SCSLoggerLevelDebug (.debug in Swift)
- SCSLoggerLevelInfo (.info in Swift)
- SCSLoggerLevelError (.error in Swift)—Default value
- SCSLoggerLevelFault (.fault in Swift)
- SCSLoggerLevelOff (.off in Swift)
By default, logs go to the console output. You can have logs go to a file using the filehandle property.