Class LogFormatter
- java.lang.Object
 - 
- java.util.logging.Formatter
 - 
- org.linuxforhealth.fhir.database.utils.common.LogFormatter
 
 
 
- 
public class LogFormatter extends java.util.logging.FormatterA 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 java.lang.Stringformat(java.util.logging.LogRecord lr)The standard formatter uses a horrible multiline approach.static voidinit(java.lang.String filename)Initialize logging by attaching this formatter to the root logger. 
 - 
 
- 
- 
Method Detail
- 
format
public java.lang.String format(java.util.logging.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...- Specified by:
 formatin classjava.util.logging.Formatter
 
- 
init
public static void init(java.lang.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 
 - 
 
 -