View logs and reports with Wowza GoCoder SDK for iOS

Learn how to collect device information, status and error reports, and logs with Wowza GoCoder™ SDK for iOS.

Contents


Collect device and SDK information
Collect status and error reports
Collect logs
More resources

Collect device and SDK information


Use the WOWZVersionInfo and WOWZPlatformInfo classes, respectively, to retrieve information about the Wowza GoCoder SDK version and the device running the app.

// Retrieve the SDK version information
NSLog(@"SDK Version Information: %@", [WOWZVersionInfo string]);
// Retrieve the device and platform information
NSLog(@"Platform and Device Information: %@", [WOWZPlatformInfo string]);

Collect status and error reports


Many of the Wowza GoCoder SDK classes use instances of the WOWZStatus class to return the status of components and processes. The WOWZStatus class contains two types of properties:

  • State indicates that a component, such as a broadcast stream, is running or stopped. 
  • Error indicates that an error occurred. The error property is an instance of the standard iOS NSError class.

The following example shows how to check the status for an error:

// Retrieve the SDK status and check for an error
if (self.goCoderSDK.status.state == WOWZStateIdle && self.goCoderSDK.status.error != nil) {
  NSLog(@"An SDK error occurred: %@", [self.goCoderSDK.status.error localizedDescription]);
}

Collect logs


The Wowza GoCoder SDK uses the iOS NSLog function to send log outputs to the Apple System Log facility.

More resources