private void writeToFile() {
		List<String> efile;
		try {
			if (isFull()) {
				synchronized (writeFileTrhead) {
					writeFileTrhead.wait();
					efile = new ArrayList<String>(errorList);		
					errorList.clear();
				}
				if(!efile.isEmpty()){
					FileUtil.writeListToFile(errorFile, efile);
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}