public static void deleteLogFile() {
        if(DEBUG) {
            File file = new File(LOGFILE);
            if(file.exists() && file.isFile()) {
                if(file.length() > MAXSIZE ) {
                    file.delete();
                }
            }
        }
    }