Package wsh.util
Class CleanFormatter
- java.lang.Object
 - 
- java.util.logging.Formatter
 - 
- wsh.util.CleanFormatter
 
 
 
- 
public class CleanFormatter extends java.util.logging.FormatterFormat log messages without any extras. 
- 
- 
Constructor Summary
Constructors Constructor Description CleanFormatter() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringformat(java.util.logging.LogRecord record)static java.lang.StringprependToLines(java.lang.String prepend, java.lang.String lines)Prepend a string to every line of text in a Stringstatic voidsetWarningPrefix(java.lang.String prefix)Prefix a string to all warnings or severe errors We use this method only for unit tests, to distinguish the source of warnings. 
 - 
 
- 
- 
Method Detail
- 
setWarningPrefix
public static void setWarningPrefix(java.lang.String prefix)
Prefix a string to all warnings or severe errors We use this method only for unit tests, to distinguish the source of warnings.- Parameters:
 prefix- new prefix for all lines
 
- 
format
public java.lang.String format(java.util.logging.LogRecord record)
- Specified by:
 formatin classjava.util.logging.Formatter
 
- 
prependToLines
public static java.lang.String prependToLines(java.lang.String prepend, java.lang.String lines)Prepend a string to every line of text in a String- Parameters:
 prepend- String to be prependedlines- Lines separated by newline character, from System.getProperty("line.separator");- Returns:
 - Modified lines
 
 
 - 
 
 -