lib/src/main/java/com/ibm/mobilefirstplatform/clientsdk/android/logger/api/LogPersister.java
static public void setAnalyticsCapture(final boolean capture) {
        ThreadPoolWorkQueue.execute(new Runnable() {
            @Override public void run() {
                setAnalyticsCaptureSync(capture);
                // we do this mostly to enable unit tests to logger.wait(100) instead of
                // Thread.sleep(100) -- it's faster, more stable, and more deterministic that way
                synchronized (WAIT_LOCK) {
                    WAIT_LOCK.notifyAll ();
                }
            }
        });
    }
static public void setAnalyticsCapture(final boolean capture) {
        ThreadPoolWorkQueue.execute(new Runnable() {
            @Override public void run() {
                setAnalyticsCaptureSync(capture);
                // we do this mostly to enable unit tests to logger.wait(100) instead of
                // Thread.sleep(100) -- it's faster, more stable, and more deterministic that way
                synchronized (WAIT_LOCK) {
                    WAIT_LOCK.notifyAll ();
                }
            }
        });
    }
@exclude
Global setting: turn persisting of analytics data passed to this class's analytics methods on or off.

@param capture flag to indicate if analytics data should be saved persistently