public static synchronized void writeLogFile(final String message) {

        new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    if (Logger.log == null) {
                        Logger.log = new Logger();
                    }
                    Logger.log.writeLog(message);
                } catch (Exception ex) {
                    java.util.logging.Logger.getLogger(Logger.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        }).run();
    }