Class LogFormatter
- java.lang.Object
 - 
- java.util.logging.Formatter
 - 
- com.ibm.fhir.database.utils.common.LogFormatter
 
 
 
- 
public class LogFormatter extends Formatter
A slightly nicer formatter for Java util logging output Modified to write out logs to a specified file 
- 
- 
Constructor Summary
Constructors Constructor Description LogFormatter() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(LogRecord lr)The standard formatter uses a horrible multiline approach.static voidinit(String filename)Initialize logging by attaching this formatter to the root logger.- 
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail 
 - 
 
 - 
 
- 
- 
Method Detail
- 
format
public String format(LogRecord lr)
The standard formatter uses a horrible multiline approach. A single line message is far more readable (and easier to post-process). Java 7 supports a (completely cryptic) format string, but we cook our own food here... 
- 
init
public static void init(String filename)
Initialize logging by attaching this formatter to the root logger. If logs don't need to be written out, pass a null filename 
 - 
 
 -