@Override
  public List<LogEntry> getLogs() {
    List<LogEntry> logs = Lists.newArrayList();
    String result = logoutput != null ? logoutput.toString() : "";
    String[] lines = result.split("\\r?\\n");
    log.fine("getting logcat");
    for (String line : lines) {
      Level l;
      if (line.startsWith("I")) {
        l = Level.INFO;
      } else if (line.startsWith("W")) {
        l = Level.WARNING;
      } else if (line.startsWith("S")) {
        l = Level.SEVERE;
      } else {
        l = Level.FINE;
      }
      logs.add(new LogEntry(l, System.currentTimeMillis(), line));
      log.fine(line);
    }
    return logs;
  }
Constructor mean to be used with Android Hardware devices because a reference to the
{@link IDevice} will be available immediately after they are connected.

@param device
selendroid-standalone/src/main/java/io/selendroid/standalone/android/impl/AbstractDevice.java