Skip to content

Logging

nook edited this page Aug 22, 2016 · 1 revision

Logging

The Yieldmo SDK has several log levels available to aid in debugging and to triage potential errors in implementation.

Log Level Description
YMLogLevelNone No logging
YMLogLevelError Only log serious problems
YMLogLevelWarning Log warning messages that indicate potential problems
YMLogLevelInfo Log informational messages that do not indicate problems
YMLogLevelDebug Log detailed debugging messages

By default the SDK's log level is set to YMLogLevelInfo. To change the log level in your app, use the Yieldmo setLogLevel: method.

/* Objective-C */
[Yieldmo setLogLevel:YMLogLevelDebug];
/* Swift */
Yieldmo.setLogLevel(.Debug)

An alternate way to change the Yieldmo SDK's log level is described in the Plist Configuration page.

Clone this wiki locally