uk.me.parabola.log
Class UsefulFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by uk.me.parabola.log.UsefulFormatter

public class UsefulFormatter
extends java.util.logging.Formatter

Prints the message all on one line, which amazingly is not the default behaviour in j.u.l, no wonder no one uses it. MUST be public whatever crazy static analyzers might say.

Author:
Steve Ratcliffe

Constructor Summary
UsefulFormatter()
           
 
Method Summary
 java.lang.String format(java.util.logging.LogRecord record)
           
 void setShowTime(boolean showTime)
           
 
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsefulFormatter

public UsefulFormatter()
Method Detail

format

public java.lang.String format(java.util.logging.LogRecord record)
Specified by:
format in class java.util.logging.Formatter

setShowTime

public void setShowTime(boolean showTime)