|
|||||||||
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.DebugFormatterStdErrText
public class DebugFormatterStdErrText
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 boolean |
_debugStdErrWithStackTraces
|
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 | |
---|---|
DebugFormatterStdErrText()
|
|
DebugFormatterStdErrText(boolean debugStdErrWithStackTraces)
|
Method Summary | |
---|---|
String |
format(LogRecord lr)
Gibt dei DebungMeldung aus |
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 |
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
private final boolean _debugStdErrWithStackTraces
Constructor Detail |
---|
public DebugFormatterStdErrText()
public DebugFormatterStdErrText(boolean debugStdErrWithStackTraces)
Method Detail |
---|
public String format(LogRecord lr)
format
in class Formatter
lr
- LogRecord mit den Informationen einer Meldung.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |