|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Formatter
de.bsvrz.sys.funclib.debug.DebugFormatterFileText
public class DebugFormatterFileText
Gibt die DebugMeldungen als Text aus. Die Ausgabe erfolgt in der folgenden Form (Bespiel für Ausgaben in Verschiedenen Leveln und mit mehrzeiligen Meldungstexten):
------- 18.09.2003
16:58:22,960:+0200(TID:......) ---------------------- STATUS Ausgabedatei angelegt. #000000 18.09.2003
16:58:22,960:+0200(TID:000010) ---------------------- INFO LOGGER :ApplikationName MELDUNG: Aktuelle
Debugeinstellungen ---------------------------------------------- Registrierte DebugLogger: global ApplikationName
Basiseinstellung des Wurzel-DebugLoggers ---------------------------------------------- Name
:ApplikationName DebugLevel :ALL Filter :null ParentName :java.util.logging.LogManager$RootLogger@e7b241
RCS-Bundle :null RCS-Bundle-Name :null #000001 18.09.2003 16:58:22,970:+0200(TID:000010) ######################
FEHLER LOGGER :ApplikationName.hck.debug.TestLogger MELDUNG: hck.debug.TestLogger :Testausgabe in SEVERE #000002
18.09.2003 16:58:22,970:+0200(TID:000010) ====================== WARNUNG LOGGER :ApplikationName.hck.debug.TestLogger
MELDUNG: hck.debug.TestLogger :Testausgabe in WARNING #000003 18.09.2003 16:58:22,970:+0200(TID:000010)
---------------------- INFO LOGGER :ApplikationName.hck.debug.TestLogger MELDUNG: hck.debug.TestLogger :Testausgabe
in INFO #000004 18.09.2003 16:58:23,070:+0200(TID:000010) ...................... KONFIG LOGGER
:ApplikationName.hck.debug.TestLogger MELDUNG: hck.debug.TestLogger :Testausgabe in CONFIG #000005 18.09.2003
16:58:23,070:+0200(TID:000010) . . . . . . . . FEIN LOGGER :ApplikationName.hck.debug.TestLogger MELDUNG:
hck.debug.TestLogger :Testausgabe in FINE #000006 18.09.2003 16:58:23,070:+0200(TID:000010) . . . . . . . .
FEINER LOGGER :ApplikationName.hck.debug.TestLogger MELDUNG: hck.debug.TestLogger :Testausgabe in FINER #000007
18.09.2003 16:58:23,070:+0200(TID:000010) . . . . . . . . DETAIL LOGGER :ApplikationName.hck.debug.TestLogger
MELDUNG: hck.debug.TestLogger :Testausgabe in FINEST
Field Summary | |
---|---|
private static DateFormat |
_absoluteMillisecondsFormat
Formatstring für das Ausgabeformat des Zeitstempels. |
private static DecimalFormat |
_numberFormat
Formatstring mit Angabe für die Formatierung der Zahlenausgaben für die lfd. |
private static String |
DOT_LINE
Linientyp wird bei der Ausgabe vom Level KONFIGURATION verwendet |
private static String |
DOUBLE_LINE
Linientyp wird bei der Ausgabe vom Level WARNUNG verwendet |
private static String |
HASH_LINE
Linientyp wird bei der Ausgabe vom Level FEHLER verwendet |
private static String |
NEWLINE
Systemabhängig zur Laufzeit ermittelter String für den Zeilenumbruch. |
private static String |
SIMPLE_LINE
Linientyp wird bei der Ausgabe vom Level FEIN, FEINER und DETAIL verwendet |
private static String |
SINGLE_LINE
Linientyp wird bei der Ausgabe vom Level INFO verwendet |
Constructor Summary | |
---|---|
DebugFormatterFileText()
|
Method Summary | |
---|---|
String |
format(LogRecord lr)
Gibt dei DebungMeldung aus |
String |
getHead(Handler h)
Gibt am Anfang des Protokolls bzw. |
String |
getTail(Handler h)
Gibt am Ende des Protokolls bzw. |
Methods inherited from class java.util.logging.Formatter |
---|
formatMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final DateFormat _absoluteMillisecondsFormat
private static final DecimalFormat _numberFormat
private static final String NEWLINE
private static final String HASH_LINE
private static final String DOUBLE_LINE
private static final String SINGLE_LINE
private static final String DOT_LINE
private static final String SIMPLE_LINE
Constructor Detail |
---|
public DebugFormatterFileText()
Method Detail |
---|
public String format(LogRecord lr)
format
in class Formatter
lr
- LogRecord mit den Informationen einer Meldung.
public String getHead(Handler h)
getHead
in class Formatter
h
- Handler der den Formatter aufgerufen hat. Wird nicht verwendet.
public String getTail(Handler h)
getTail
in class Formatter
h
- Handler der den Formatter aufgerufen hat. Wird nicht verwendet.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |