title: How can I append to log files in this simple Java Logging implementation?
body: <p>I got the following class to create and manage a <code>Logger</code>. Whenever across the code and program execution, calls to static <code>getLogger()</code> <em>catch blocks</em> are used to log.</p>
  
  <pre><code>public class Log {
      private static final Logger logger = Logger.getLogger("MyLog");  
  
      public static void iniciarLog() throws IOException {
          FileHandler fh;  
  
          try { 
  //          fh = new FileHandler(System.getProperty("user.home")+System.getProperty("file.separator")+"TorrentDownloader.log");  
              fh = new FileHandler("%h/TorrentDownloader.log");  
              logger.addHandler(fh);
              SimpleFormatter formatter = new SimpleFormatter();  
              fh.setFormatter(formatter);  
  
              logger.info("Se inició el log"); 
          } catch (SecurityException | IOException e) {  
              logger.severe("Error al crear el log");
          } 
      }
  
      public static Logger getLogger() {
          return logger;
      }
  }
  </code></pre>
  
  <p>However, how can I append to such logging file? All examples I've seen change a lot this implementation which I like as it's clear, brief and simple.</p>