Enable Logging and Set Logging Level

You use the method loggingLevel to enable and set the logging level. You can set logging to one of the following levels:

  • ADEumLoggingLevelOff
  • ADEumLoggingLevelAll
  • ADEumLoggingLevelVerbose
  • ADEumLoggingLevelDebug
  • ADEumLoggingLevelInfo
  • ADEumLoggingLevelWarn
  • ADEumLoggingLevelError
Note: Use verbose, all, and debug levels of logging only for troubleshooting and be sure to turn off for production.

Examples

Objective-C
JSON
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // appKey should be assigned your EUM app key
    ADEumAgentConfiguration *config = [[ADEumAgentConfiguration alloc] initWithAppKey: <#EUM_APP_KEY#>];
    config.loggingLevel = ADEumLoggingLevelAll;
    [ADEumInstrumentation initWithConfiguration:config];
    ...
}
Swift
JAVASCRIPT
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
{
    // appKey should be assigned your EUM app key
    let config = ADEumAgentConfiguration(appKey: <#EUM_APP_KEY#>)
    config.loggingLevel = .all
    ADEumInstrumentation.initWithConfiguration(config)
    ...
    return true
}