title: Java Logger overwrites everytime I try to put text in a log file
body: <pre><code>int good = (int )(Math.random() * 6 + 1);
  if(good == 1){
      JOptionPane.showMessageDialog(frame, "Green result 1");
      Logger logger = Logger.getLogger(DiceRoll.class.getName());
      FileHandler fileLog = new FileHandler("Logs.log");
      logger.addHandler(fileLog);
      logger.log(Level.INFO, "Green result 1");
  }
  </code></pre>
  
  <p>This code is supposed to (at the bottom) put "Green result 1," into a file, but it overwrites the file every time I run the program. How would I make it put the text into the file, but not overwrite it? Any help will be much appreciated.</p>