By default, SDK logs messages that are useful to verify SDK functionality. To disable or tune what log messages are printed, use the
setLogLevel API. To retrieve the current log level, use the
[CFMobile setLogLevel:CFLogLevelNone];NSLog(@"Current SDK log level is none: %@", [CFMobile logLevel] == CFLogLevelNone ? @"true" : @"false");
CFMobile.setLogLevel(CFLogLevel.None);print("Current SDK log level is none: \(CFMobile.logLevel() == CFLogLevel.None)");
The logging levels available in order of verbosity are as follows:
CFLogLevelDetail– Print all SDK log messages (Default).
CFLogLevelWarning– Only print warning and error messages.
CFLogLevelError– Only print error messages.
CFLogLevelNone– Turn off all SDK log messages.