void startLogListener(){
  List<LoggingService> services=getEnabledServicesForType(LoggingService.class);
  if (services != null && !services.isEmpty()) {
    if (logListener == null) {
      logListener=new LogListener(context,services,foamApiKeys.wifiOnly());
    }
    if (!logListener.isRunning()) {
      logListener.start();
    }
  }
}

void startLogListener ( ) { List < LoggingService > services = getEnabledServicesForType ( LoggingService . class ) ; if ( services != null && ! services . isEmpty ( ) ) { if ( logListener == null ) { logListener = new LogListener ( context , services , foamApiKeys . wifiOnly ( ) ) ; } if ( ! logListener . isRunning ( ) ) { logListener . start ( ) ; } } }
start foam log listener class .
