private void checkLogFolder() {
    File folder = new File(folderPath);
    if (!folder.exists()) {
      folder.mkdirs();
    }
  }
Make sure the folder of log file exists.
xlog/src/main/java/com/elvishew/xlog/printer/file/FilePrinter.java