Skip to main content

The log

Set the log level when you initialize:
Levels, each including the ones above it: .none, .error, .warning (the default), .info, .debug. At .debug the SDK logs every request and its answer, every ad with its price, every load, show and end with its reason, and every tracking event as it fires. The lines go to the unified log under the subsystem so.kontext.video; in Console.app, filter on that subsystem to see only the SDK. Turn it back to .warning for release.

The state

initialize(with:) reports where the SDK is, through its completion or as its async result:

Errors

Every call that cannot do its job throws, and a thrown error means nothing happened on screen. The ones you will meet while integrating: The full list is in the API reference.

When something looks off

  1. Set logLevel: .debug and reproduce.
  2. Copy the SDK’s lines from the console, from initialize to the moment it went wrong.
  3. Send them to support@kontext.so with your publisher token and the ad id from the log.
The log carries everything we need to replay what happened on our side.