Package cc.mallet.util
Class ProgressMessageLogFormatter
- java.lang.Object
-
- java.util.logging.Formatter
-
- java.util.logging.SimpleFormatter
-
- 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
Constructors Constructor Description ProgressMessageLogFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(java.util.logging.LogRecord record)
-