title: How to make logs print only on files without being printed out on a console?
body: <p>Although I've configured handler to write logs to files structure, but I get the log on the console bar when I run the program, how can I masquerade logs so it will only be written on files without exposing to console.</p>
  
  <pre><code>static {
      System.setProperty("java.util.logging.config.file",
              "log.properties");
      //must initialize loggers after setting above property
  }
  static Logger logger = Logger.getLogger("com.debugz");
  public static void main(String[] args) {
  try  {
          FileHandler h = new FileHandler("%h/file_%g.log",1,4);
          h.setFormatter(new SimpleFormatter());
          logger.addHandler(h);
          logger.log(Level.INFO,"Hello");
  
      }
      catch (Exception error){
          System.out.println("Error : "+error.getMessage());
      }
  }
  </code></pre>