code: public synchronized void writeLog(String log) throws IOException {
  		if (mFile.length() < mFileMaxSize) {
  			writeLogToFile(log, mFile, true);
  		} else {
  			rotateLogFiles();
  			createNewFile();
  			writeLogToFile(log, mFile, false);
  		}
  	}
docs: Write a log. (Synchronized)
  
  @param log
  The log content
  @throws IOException