title: Java Logging - Is there a way to control what data be inserted into the xml?
body: <p>I was learning about java logging mechanism and I wrote the following code.The following code logs the 2 messages in a file named <code>LOGGED.xml</code>. </p>
  
  <pre><code>import java.util.logging.Logger;
  import java.util.logging.FileHandler;
  import java.util.logging.Level;
  import java.io.IOException;
  
  class Tester {
    public static void main(String args[]) throws IOException{
      Logger logger = Logger.getLogger(Tester.class.getName());
      FileHandler fHandler = new FileHandler("LOGGED.xml");
      logger.addHandler(fHandler);
      logger.log(Level.INFO,"This is an info log message");
      logger.log(Level.WARNING,"This is a warning message");
      fHandler.close();
    }
  }
  </code></pre>
  
  <p>Following is what I see in the <em>xml</em> file :</p>
  
  <pre><code>&lt;log&gt;
   &lt;record&gt;
    &lt;date&gt;2013-02-02T16:42:48&lt;/date&gt;
    &lt;millis&gt;1359803568992&lt;/millis&gt;
    &lt;sequence&gt;0&lt;/sequence&gt;
    &lt;logger&gt;Tester&lt;/logger&gt;
    &lt;level&gt;INFO&lt;/level&gt;
    &lt;class&gt;Tester&lt;/class&gt;
    &lt;method&gt;main&lt;/method&gt;
    &lt;thread&gt;1&lt;/thread&gt;
    &lt;message&gt;This is an info log message&lt;/message&gt;
   &lt;/record&gt;
  
   &lt;record&gt;
    &lt;date&gt;2013-02-02T16:42:49&lt;/date&gt;
    &lt;millis&gt;1359803569031&lt;/millis&gt;
    &lt;sequence&gt;1&lt;/sequence&gt;
    &lt;logger&gt;Tester&lt;/logger&gt;
    &lt;level&gt;WARNING&lt;/level&gt;
    &lt;class&gt;Tester&lt;/class&gt;
    &lt;method&gt;main&lt;/method&gt;
    &lt;thread&gt;1&lt;/thread&gt;
    &lt;message&gt;This is a warning message&lt;/message&gt;
   &lt;/record&gt;
  &lt;/log&gt;
  </code></pre>
  
  <p>There are lots of things I don't want. Is there any way I can control what data be inserted in the xml ? At some point I only want to see my <em>string</em> messages.</p>