code: private static void openLog(String rootName) throws Exception {
          s_rootName = rootName;
          String fileName =
                  s_rootName + "-" + System.currentTimeMillis() + ".xml";
          File outFile;
          String fedoraHome = Constants.FEDORA_HOME;
          if (fedoraHome == null) {
              // to current dir
              outFile = new File(fileName);
          } else {
              // to client/log
              File logDir =
                      new File(new File(new File(fedoraHome), "client"), "logs");
              if (!logDir.exists()) {
                  logDir.mkdir();
              }
              outFile = new File(logDir, fileName);
  
          }
          s_logPath = outFile.getPath();
          s_log = new PrintStream(new FileOutputStream(outFile), true, "UTF-8");
          s_log.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
          s_log.println("<" + s_rootName + ">");
      }
docs: Initializes the log file for writing.
  
  @param rootName
  The name of the root element for the xml log file.
  @throws Exception
  If any type of error occurs in trying to open the log file for
  writing.