Skip to main content
Version: 4.x.x

Log Level – iOS

Log levels control how much diagnostic information the SDK emits. They allow you to adjust logging verbosity based on your debugging needs without affecting SDK behavior.

The SDK writes logs only in response to its own activity, such as lifecycle events, state transitions, warnings and errors.

Log levels are hierarchical — higher verbosity levels automatically include logs from lower levels.


Log Level Comparison​

LevelDescriptionIncludesRecommended Use
NONEDisables all logging output.–When logging is not needed.
ERRORError logs only.ERRORWhen you only need failure notifications.
WARNWarning and error logs.WARN, ERRORWhen you want visibility into potential issues alongside failures.
INFO (Default)High-level SDK activity and state transitions.INFO, WARN, ERRORGeneral monitoring of SDK activity, events, operations, and state changes.
DEBUGINFO logs plus detailed diagnostic information.DEBUG, INFO, WARN, ERRORInvestigating issues or when deeper diagnostic details are required.
ALLAll logs, including high-frequency real-time events.ALLDetailed analysis, troubleshooting complex scenarios, or low-level debugging.

Setting the Log Level​

Call VideoSDK.setLogLevel(level:) with one of the LogLevel cases: .NONE, .ERROR, .WARN, .INFO, .DEBUG or .ALL.

The level is .INFO until you change it. If you call setLogLevel without a level, it uses .INFO. VideoSDK.getLogLevel() returns the current level.

The log level can be configured at any time:

  • Before joining a room
  • After joining a room
  • During runtime

Logs appear in the Xcode console while your app runs from Xcode. Most lines start with VideoSDK:.

Enable Logs​

VideoSDK.setLogLevel(level: .DEBUG)

Disable Logs​

VideoSDK.setLogLevel(level: .NONE)

Got a Question? Ask us on discord