public void logFile(File sourceFile) throws IOException {
    String[] splitInfo =
        sourceFile.getAbsolutePath().split(File.separator.equals("\\") ? "\\\\" : "/");
    int length = splitInfo.length;
    String fileName = splitInfo[length - FILE_NAME_OFFSET];
    String timePartition = splitInfo[length - TIME_PARTITION_OFFSET];
    String sequence = splitInfo[length - SEQUENCE_OFFSET];
    os.write(fileName.getBytes(StandardCharsets.UTF_8));
    os.write(SPLIT_CHAR.getBytes(StandardCharsets.UTF_8));
    os.write(timePartition.getBytes(StandardCharsets.UTF_8));
    os.write(SPLIT_CHAR.getBytes(StandardCharsets.UTF_8));
    os.write(sequence.getBytes(StandardCharsets.UTF_8));
    os.write("\n".getBytes(StandardCharsets.UTF_8));
    os.flush();
  }
Log the logical info for the link file, including its file name, time partition, data region
id, database name, sequence or not.

@param sourceFile
@throws IOException
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/snapshot/SnapshotLogger.java