public class CleanFormatter
extends java.util.logging.Formatter
Constructor and Description |
---|
CleanFormatter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.util.logging.LogRecord record) |
static java.lang.String |
prependToLines(java.lang.String prepend,
java.lang.String lines)
Prepend a string to every line of text in a String
|
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.
|
public static void setWarningPrefix(java.lang.String prefix)
prefix
- new prefix for all linespublic java.lang.String format(java.util.logging.LogRecord record)
format
in class java.util.logging.Formatter
public static java.lang.String prependToLines(java.lang.String prepend, java.lang.String lines)
prepend
- String to be prependedlines
- Lines separated by newline character, from
System.getProperty("line.separator");