cc.mallet.util
Class ProgressMessageLogFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by java.util.logging.SimpleFormatter
          extended by cc.mallet.util.ProgressMessageLogFormatter

public class ProgressMessageLogFormatter
extends java.util.logging.SimpleFormatter

Format ProgressMessages destined for screen. Progress messages are repetitive messages, of which only the last one is generally of interest. Progress messages are a subclass of LogRecord, generated by a progressMessageLogger. When printing a progress message, we carriage return but supress the line-feed. If we get a message that is not a progressMessage, print it the same way PlainLogFormatter does. todo: capture the formatter that was on the console (usually a plainlogformatter) and defer to it when needed.


Constructor Summary
ProgressMessageLogFormatter()
           
 
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
 

Constructor Detail

ProgressMessageLogFormatter

public ProgressMessageLogFormatter()
Method Detail

format

public java.lang.String format(java.util.logging.LogRecord record)
Overrides:
format in class java.util.logging.SimpleFormatter