title: outputStream.println() - not printing to .log file?? I can't see why
body: <p>I'm trying to print a time entry to a log file and it will not output. I have used almost the same exact code to log messages and it worked fine. Can anyone see something I'm not seeing? The testing print lines all print, and no errors occur. Thanks for your help...</p>
  
  <pre><code>private static String logTime(long time, String operation)
    {
      PrintWriter outputStream = null;
      String logFile = "time.log";
  
      System.out.println("Writing output");
      try{
      System.out.println("Writing output2");
        outputStream = new PrintWriter(new FileOutputStream(logFile, true));
  
  
      } catch(FileNotFoundException e){
        System.out.println("File not found by logTime.");
      }
      System.out.println("Writing output3");
  
      outputStream.println(operation); //operation + " : " + Long.toString(time) + "Mills"
      outputStream.close();
  
      return "";
    }
  </code></pre>