title: GlassFish 3: how do you change the (default) logging format?
body: <p>The question originated from here: <a href="http://www.java.net/forum/topic/glassfish/glassfish/configuring-glassfish-logging-format" rel="nofollow noreferrer">http://www.java.net/forum/topic/glassfish/glassfish/configuring-glassfish-logging-format</a> - without an answer.</p>
  
  <p>The default GlassFish 3 logging format is very annoying, much too long.</p>
  
  <pre><code>[#|2012-03-02T09:22:03.165+0100|SEVERE|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=113;_ThreadName=AWT-EventQueue-0;| MESSAGE... ]
  </code></pre>
  
  <p>This is just a horrible default IMO. The docs just explain all the fields, but not how to change the format: <a href="http://docs.oracle.com/cd/E18930_01/html/821-2416/abluk.html" rel="nofollow noreferrer">http://docs.oracle.com/cd/E18930_01/html/821-2416/abluk.html</a></p>
  
  <p>Note, that I deploy SLF4J along with my webapp which should pick up the format as well.</p>
  
  <p><strong>How do you change the logging format?</strong></p>
  
  <p>FYI:</p>
  
  <p>The links here are outdated: <a href="https://stackoverflow.com/questions/3880452/install-log-formater-in-glass">Install log formater in glassfish</a>...</p>
  
  <p>The question here hasn't been answered: <a href="https://stackoverflow.com/questions/9186682/how-to-configure-glassfish-lo">How to configure GlassFish logging to show milliseconds in timestamps?</a>...</p>
  
  <p>The posting here resulted in nothing: <a href="http://www.java.net/forum/topic/glassfish/glassfish/cant-seem-configure-" rel="nofollow noreferrer">http://www.java.net/forum/topic/glassfish/glassfish/cant-seem-configure-</a>...</p>
  
  <p>It looks like GlassFish logging configuration is an issue of its own. Can <em>anybody</em> help?</p>