title: Java Logger entering() and exiting() methods
body: <p>I just started to use <strong>Java Logger</strong>. I tried to use its <code>entering()</code> and <code>exiting()</code> methods with hard coded string for class name and method. They both didn't work for me. Just no log entry for them. But other log statements within that methods were logged properly. My logger level is set to <code>CONFIG</code>. I have tried to set to <code>ALL</code> but still cannot see log entry from them.</p>
  
  <p>I found for each entry, there already has a line with class name and method being logged. It seems these two methods are not necessary. But I am still want to know how to make them work for me.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>My code followed: these entering() and exiting() are not create an entry in the log file</p>
  
  <pre><code>//class variables
  private final static Logger logger = Logger.getLogger(MyClass.class.getName());
  private static FileHandler logFileHandler = null;
  
  //within the main() method
  Logger thisLogger = Logger.getLogger("");
  logFileHandler =  new FileHandler(logFileNameStr, false);
  logFileHandler.setFormatter(new SimpleFormatter());
  thisLogger.addHandler(logFileHandler);
  thisLogger.setLevel(Level.CONFIG);
  logger.log(Level.INFO, "Logfile Directory = " + logFileNameStr);
  
  
  //within a constructor of MyClass
  logger.entering("MyClass", "MyClass()");
  ....
  logger.info(initMsg);
  ....
  logger.exiting(this.getClass().getSimpleName(), "MyClass()");
  </code></pre>