Skip to content

IOMb Lib iOS - Debug Information

For the purpose of general error analysis and esp. the sending of measurement data the IOMb Lib iOS can be set into a debug mode.

In this debug mode the IOMb Lib iOS generates output in the log stream (console).

1
2
3
4
5
6
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: 
    [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

    IOMBLogging.setDebugLogLevel(.info)
    return true
}
The type and amount of log output can be determined by a DebugLevel.

note

Please disable debug mode before publishing the app.

The following debug levels are defined:

  • IOMBDebugLevelOff: Disabled (Default).
  • IOMBDebugLevelError: Error only.
  • IOMBDebugLevelWarning: Errors and warnings
  • IOMBDebugLevelInfo: Errors, warnings and info.
  • IOMBDebugLevelTrace: errors, warnings, info, events, requests and responses
note

Requests and responses are stored in the Documents Folder. For debugging purposes, file sharing can be enabled in iTunes and the corresponding files can simply be copied.


Last update: April 7, 2022