net.sf.colossus.util
Class VerySimpleFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by net.sf.colossus.util.VerySimpleFormatter

public class VerySimpleFormatter
extends java.util.logging.Formatter

This is a logging formatter doing not much more than the bare minimum. We don't log the source class/method, we log the level only if WARNING or SEVERE. Exceptions are logged if given, but otherwise it is more like printing to stdout, just that it is configurable and it is possible to have a more verbose log in parallel.


Field Summary
static java.lang.String LINE_SEPARATOR
           
 
Constructor Summary
VerySimpleFormatter()
           
 
Method Summary
 java.lang.String format(java.util.logging.LogRecord record)
           
 
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
 

Field Detail

LINE_SEPARATOR

public static final java.lang.String LINE_SEPARATOR
Constructor Detail

VerySimpleFormatter

public VerySimpleFormatter()
Method Detail

format

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