xmlBlaster 2.2.0 client API

org.xmlBlaster.util.log
Class XbFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by 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

Field Summary
static java.lang.String BLACK_GREEN
           
static java.lang.String BLACK_LTGREEN
           
static java.lang.String BLACK_PINK
           
static java.lang.String BLACK_RED
           
static java.lang.String BLUE_BLACK
           
static java.lang.String ESC
          Reset color to original values
static java.lang.String fineE
           
static java.lang.String finerE
           
static java.lang.String finerX
           
static java.lang.String finestE
           
static java.lang.String finestX
           
static java.lang.String fineX
           
static java.lang.String GREEN_BLACK
           
static java.lang.String infoE
           
static java.lang.String infoX
           
 java.text.SimpleDateFormat iso8601Formater
           
static java.lang.String LTGREEN_BLACK
           
static java.lang.String PINK_BLACK
           
static java.lang.String RED_BLACK
          color foreground/background (for xterm).
static java.lang.String severeE
           
static java.lang.String severeX
          Output text for different logging levels
static java.lang.String warningE
           
static java.lang.String warningX
           
static java.lang.String WHITE_BLACK
           
static java.lang.String WHITE_GREEN
           
static java.lang.String WHITE_RED
           
static java.lang.String YELLOW_BLACK
           
 
Constructor Summary
XbFormatter()
           
XbFormatter(java.lang.String id)
           
 
Method Summary
 java.lang.String convertLevelToString(int level)
           
 java.lang.String format(java.util.logging.LogRecord record)
           
 java.lang.String getId()
           
 boolean iso8601Time()
           
 boolean isWithXtermEscapeColor()
           
static void main(java.lang.String[] args)
           
 void setGlobal(Global glob)
           
static boolean withXtermColors()
          If we may switch on xterm colors.
 
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

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
Constructor Detail

XbFormatter

public XbFormatter()

XbFormatter

public XbFormatter(java.lang.String id)
Method Detail

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 -

xmlBlaster 2.2.0 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.