---
schema_version: "1"
id: 643a2670f5f16fc59b966e442ae9daef14a9a53f0623966d27a8e32c4b5cb245
title: Enable Debug Logging for the iOS SDK
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/service_sdk_ios/logging.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.service_sdk_ios.meta/service_sdk_ios/logging.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9ee1c4edc08cedf96c84f92ae178cda0555c290376cdf359c8c9a9ec62bef0ea
description: To configure the Service Chat SDK logs, set the level property on the ServiceLogger shared instance.
---
# Enable Debug Logging for the iOS SDK

To configure the Service Chat SDK logs, set the level property on the ServiceLogger shared instance.

Use the [shared](https://forcedotcom.github.io/ServiceSDK-iOS/releases/api/234.1/Classes/SCServiceLogger.html#/c:objc\(cs\)SCServiceLogger\(cpy\)sharedLogger) singleton on [ServiceLogger](https://forcedotcom.github.io/ServiceSDK-iOS/releases/api/234.1/Classes/SCServiceLogger.html) to adjust the [level](https://forcedotcom.github.io/ServiceSDK-iOS/releases/api/234.1/Classes/SCServiceLogger.html#/c:objc\(cs\)SCServiceLogger\(py\)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](https://forcedotcom.github.io/ServiceSDK-iOS/releases/api/234.1/Classes/SCServiceLogger.html#/c:objc\(cs\)SCServiceLogger\(py\)filehandle) property.