private void writeToFile(String fileFullName, String content) throws LogSystemException {

		mkDir(filePath);

		FileOutputStream fos = null;

		lock.writeLock().lock();
		try {

			fos = new FileOutputStream(fileFullName, true);
			fos.write(content.getBytes("utf-8"));

		} catch (FileNotFoundException e) {

			throw new LogSystemException("FileNotFoundException, " + fileFullName);

		} catch (UnsupportedEncodingException e) {

			throw new LogSystemException("UnsupportedEncodingException, write to " + fileFullName);

		} catch (IOException e) {

			throw new LogSystemException("IOException, write to " + fileFullName);

		} finally {

			lock.writeLock().unlock();

			if (fos != null) {
				try {
					fos.close();
				} catch (IOException e) {

				}
			}
		}

	}