title: (Java) writing events to log text file
body: <p>I am trying to write the events in a log file but no file is being created. I am getting no error at all. Here is the log class:</p>
  
  <pre><code>public class Logs {
  static FileHandler fileTxt;
  static SimpleFormatter formatterTxt;
  
  
  static public void logging() throws IOException {
  
      Logger logger = Logger.getLogger("");
      logger.setLevel(Level.INFO);//Loget Info, Warning dhe Severe do ruhen
      fileTxt = new FileHandler("c:/SimleTaskEvents.txt");
      formatterTxt = new SimpleFormatter();
      fileTxt.setFormatter(formatterTxt);
      logger.addHandler(fileTxt);
  
  }
  }
  </code></pre>