code: protected void openLog (boolean freakout)
      {
          try {
              // create our file writer to which we'll log
              FileOutputStream fout = new FileOutputStream(_logPath, true);
              OutputStreamWriter writer = new OutputStreamWriter(fout, "UTF8");
              _logWriter = new PrintWriter(new BufferedWriter(writer), true);
  
              // log a standard message
              log("log_opened " + _logPath);
  
          } catch (IOException ioe) {
              String errmsg = "Unable to open audit log '" + _logPath + "'";
              if (freakout) {
                  throw new RuntimeException(errmsg, ioe);
              } else {
                  log.warning(errmsg, "ioe", ioe);
              }
          }
      }
docs: Opens our log file, sets up our print writer and writes a message to it indicating that it
  was opened.