org.csstudio.logging
Class LogFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by org.csstudio.logging.LogFormatter

public class LogFormatter
extends java.util.logging.Formatter

Log output formatter based on SimpleFormatter but one-line summary, maybe followed by exception stack

Author:
Kay Kasemir

Constructor Summary
LogFormatter(LogFormatDetail detail)
          Initialize
 
Method Summary
 java.lang.String format(java.util.logging.LogRecord record)
          Thread-save format
 
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFormatter

public LogFormatter(LogFormatDetail detail)
Initialize

Parameters:
detail - Level of detail
Method Detail

format

public java.lang.String format(java.util.logging.LogRecord record)
Thread-save format

Specified by:
format in class java.util.logging.Formatter