org.xmlBlaster.util.log
Class XbFormatter
java.lang.Object
java.util.logging.Formatter
org.xmlBlaster.util.log.XbFormatter
public class XbFormatter
- extends java.util.logging.Formatter
A xmlBlaster specific formatter for java.util.logging
- Author:
- Marcel Ruff
- See Also:
- The admin.logging requirement
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 |
iso8601Formater
public final java.text.SimpleDateFormat iso8601Formater
ESC
public static final java.lang.String ESC
- Reset color to original values
- See Also:
- Constant Field Values
RED_BLACK
public static final java.lang.String RED_BLACK
- color foreground/background (for xterm).
The ESC [30m ... ESC [38m should set the foreground
color, and ESC [40m .. ESC [48m should set the background color
- See Also:
- Constant Field Values
GREEN_BLACK
public static final java.lang.String GREEN_BLACK
- See Also:
- Constant Field Values
YELLOW_BLACK
public static final java.lang.String YELLOW_BLACK
- See Also:
- Constant Field Values
BLUE_BLACK
public static final java.lang.String BLUE_BLACK
- See Also:
- Constant Field Values
PINK_BLACK
public static final java.lang.String PINK_BLACK
- See Also:
- Constant Field Values
LTGREEN_BLACK
public static final java.lang.String LTGREEN_BLACK
- See Also:
- Constant Field Values
WHITE_BLACK
public static final java.lang.String WHITE_BLACK
- See Also:
- Constant Field Values
WHITE_GREEN
public static final java.lang.String WHITE_GREEN
- See Also:
- Constant Field Values
WHITE_RED
public static final java.lang.String WHITE_RED
- See Also:
- Constant Field Values
BLACK_RED
public static final java.lang.String BLACK_RED
- See Also:
- Constant Field Values
BLACK_GREEN
public static final java.lang.String BLACK_GREEN
- See Also:
- Constant Field Values
BLACK_PINK
public static final java.lang.String BLACK_PINK
- See Also:
- Constant Field Values
BLACK_LTGREEN
public static final java.lang.String BLACK_LTGREEN
- See Also:
- Constant Field Values
severeX
public static final java.lang.String severeX
- Output text for different logging levels
warningX
public static final java.lang.String warningX
infoX
public static final java.lang.String infoX
fineX
public static final java.lang.String fineX
finerX
public static final java.lang.String finerX
finestX
public static final java.lang.String finestX
severeE
public static final java.lang.String severeE
warningE
public static final java.lang.String warningE
infoE
public static final java.lang.String infoE
fineE
public static final java.lang.String fineE
finerE
public static final java.lang.String finerE
finestE
public static final java.lang.String finestE
XbFormatter
public XbFormatter()
XbFormatter
public XbFormatter(java.lang.String id)
setGlobal
public void setGlobal(Global glob)
withXtermColors
public static boolean withXtermColors()
- If we may switch on xterm colors.
java -DxmlBlaster/supressXtermColors ... suppresses those
- Returns:
- true for none Linux systems
convertLevelToString
public java.lang.String convertLevelToString(int level)
format
public java.lang.String format(java.util.logging.LogRecord record)
- Specified by:
format
in class java.util.logging.Formatter
getId
public java.lang.String getId()
- Returns:
- Returns the id.
isWithXtermEscapeColor
public boolean isWithXtermEscapeColor()
- Returns:
- Returns the withXtermEscapeColor.
iso8601Time
public boolean iso8601Time()
- Returns:
- Returns the iso8601Time.
main
public static void main(java.lang.String[] args)
- Parameters:
args
-
Copyright © 1999-2014 The xmlBlaster.org contributers.