code: public static void setEnableFileLog(boolean enable, String path, String fileName) {
          sEnableFileLog = enable;
  
          if (enable && path != null && fileName != null) {
              sLogFilePath = path.trim();
              sLogFileName = fileName.trim();
  
              if (!sLogFilePath.endsWith("/")) {
                  sLogFilePath = sLogFilePath + "/";
              }
          }
      }
docs: Enable writing debugging log to a target file
  @param enable enabling a file log
  @param path directory path to create and save a log file
  @param fileName target log file name