How to collect & share SDK debug logs?

Follow

Estimote SDK creates log messages in a lot of places throughout its codebase. By default, SDK logs are disabled and are instantly forgotten. Instead, you may want to collect the logs and send them back to us so we could dig into your issue. To do so, follow these steps:

  1. Set up ESTLogger class, i.e. in your App Delegate. This will enable remembering logs and will store collected log lines in a file on your device. The following code creates a ".log" file every time the app terminates.
    #import "EstimoteSDK/EstimoteSDK.h"
    ...
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        // Remember all SDK logs
        [ESTLogger setCacheLogLevel:ESTLogLevelVerbose];
    ...
    }
    ...
    - (void)applicationWillTerminate:(UIApplication *)application {
        // Save collected logs in "est-DATETIME.log" file
        [ESTLogger dumpLogCacheToFile]; 
    }
  2. Enable iTunes file sharing for your app by setting "Application supports iTunes file sharing" property to "YES" your app's Info.plist:
  3. Run your app and try to reproduce the issue.
  4. Connect your iOS device to a computer with iTunes installed.
  5. Select your device in iTunes' top bar:
  6. Select Apps > File Sharing (scroll down if you can't see it) > Your App. Generated files should be visible in the right hand side window (Your App Documents).
  7. Drag & drop the log files to Finder, and send them back to us.
Was this article helpful?
0 out of 0 found this helpful

0 Comment(s)

Estimote is
hiring!