private void initLogUploader(String logFilename, BufferedReader logReader) {
        uploadFinished = false;
        boolean last = true;
        while (isRunning || last) {
            StringBuilder buff = new StringBuilder(4096);
            String line;
            try {
                while ((line = logReader.readLine()) != null) {
                    buff.append(line);
                    buff.append("\n");
                }
            } catch (IOException e) {
                BmLog.error("Problems with reading " + logFilename, e);
            }
            if (buff.length() > 0) {
                logFilename = logFilename.substring(logFilename.lastIndexOf(System.getProperty("file.separator")) + 1);
                new Thread(new Uploader(Utils.getHostIP() + "_" + logFilename, buff.toString(), "log")).run();
            }
            try {
                Thread.sleep(10000);
            } catch (InterruptedException ignored) {
            }
            last = !isRunning && !last;
        }
        uploadFinished = true;

    }