Project MVC architecture
version 0.1 - 010723

lib
Class Trace

java.lang.Object
  |
  +--lib.Trace

public class Trace
extends java.lang.Object


Field Summary
private static java.lang.String ASNII_COLOR
           
private static java.lang.String ASNII_COLOR_1
           
private static java.lang.String ASNII_COLOR_2
           
private static java.lang.String ASNII_COLOR_D
           
private static java.lang.String ASNII_COLOR_E
           
private static java.lang.String ASNII_COLOR_L
           
private static java.lang.String ASNII_DEFIND
           
private static java.lang.String EMPTY
           
static int level
           
static boolean logging
           
private static java.lang.String SEP_LINE_1
           
private static java.lang.String SEP_LINE_2
           
static boolean tcolor
           
private static java.lang.String TRACE_COLOR
           
private static java.lang.String TRACE_COLOR_1
           
private static java.lang.String TRACE_COLOR_2
           
private static java.lang.String TRACE_COLOR_D
           
private static java.lang.String TRACE_COLOR_E
           
private static java.lang.String TRACE_COLOR_L
           
private static java.lang.String TRACE_DEFIND
           
private static java.lang.String TRAILER
          Output a string indicating what method of what class this was invoked from.
(package private) static int TRAILER_length
           
 
Constructor Summary
private Trace()
          Trace - Class loader initialize entry.
 
Method Summary
private static void adjust_TRAILER(java.lang.String longerName)
          Adjust TRAILER to the longest name so far.
static void DBG(java.lang.String s)
          DBG - Print level 3 debug messages.
static void doColors(boolean b)
          doColors - Set the current trace coloring state.
static void ERR(java.lang.String s)
          ERR - Print error messages.
static java.lang.String getAllCallerMethod()
           
static java.lang.String getCallerMethod()
           
static java.lang.String getCallerMethod(int last)
           
static java.lang.String getCallerMethod(int first, int last)
           
static java.lang.String getCallerMethod(int first, int last, java.lang.String tracerName)
           
static java.lang.String getCallerMethod(int first, int last, java.lang.String tracerName, boolean method_name_Only)
           
static java.lang.String getCallerMethod(int last, java.lang.String tracerName)
           
static java.lang.String getStackTrace()
           
static void LOG(java.lang.String s)
          LOG - Print log messages.
static void MON(java.lang.String s)
          MON - Print level 1 trace messages.
static void MON1(java.lang.String s)
          MON1 - Print level 1 trace messages.
static void MON2(java.lang.String s)
          MON2 - Print level 2 trace messages.
static void OUT(java.lang.String s)
          OUT - Print messages.
static void print_sepLine()
          print_sepLine - Print a separator line.
static void set_level(int l)
          set_level - Set trace level.
static void set_logging(boolean state)
          set_logging - Set logging state.
static void THR(java.lang.String s)
          THR - Print trace messages.
static void toggle_color()
          Toggle trace color.
static void toggle_level()
          toggle_level - Toggle trace 0/1 level.
static void toggle_logging()
          toggle_logging Toggle logging state.
static void TST(java.lang.String s)
          TST - Print messages.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

ASNII_COLOR

private static final java.lang.String ASNII_COLOR

ASNII_COLOR_1

private static final java.lang.String ASNII_COLOR_1

ASNII_COLOR_2

private static final java.lang.String ASNII_COLOR_2

ASNII_COLOR_E

private static final java.lang.String ASNII_COLOR_E

ASNII_COLOR_D

private static final java.lang.String ASNII_COLOR_D

ASNII_COLOR_L

private static final java.lang.String ASNII_COLOR_L

ASNII_DEFIND

private static final java.lang.String ASNII_DEFIND

EMPTY

private static final java.lang.String EMPTY

TRACE_COLOR

private static java.lang.String TRACE_COLOR

TRACE_COLOR_1

private static java.lang.String TRACE_COLOR_1

TRACE_COLOR_2

private static java.lang.String TRACE_COLOR_2

TRACE_COLOR_E

private static java.lang.String TRACE_COLOR_E

TRACE_COLOR_D

private static java.lang.String TRACE_COLOR_D

TRACE_COLOR_L

private static java.lang.String TRACE_COLOR_L

TRACE_DEFIND

private static java.lang.String TRACE_DEFIND

logging

public static boolean logging

level

public static int level

tcolor

public static boolean tcolor

SEP_LINE_1

private static final java.lang.String SEP_LINE_1

SEP_LINE_2

private static final java.lang.String SEP_LINE_2

TRAILER

private static java.lang.String TRAILER
Output a string indicating what method of what class this was invoked from.

TRAILER_length

static int TRAILER_length
Constructor Detail

Trace

private Trace()
Trace - Class loader initialize entry. // {{{
Method Detail

doColors

public static void doColors(boolean b)
doColors - Set the current trace coloring state. // {{{

set_level

public static void set_level(int l)
set_level - Set trace level. // {{{

toggle_level

public static void toggle_level()
toggle_level - Toggle trace 0/1 level. // {{{

set_logging

public static void set_logging(boolean state)
set_logging - Set logging state. // {{{

toggle_logging

public static void toggle_logging()
toggle_logging Toggle logging state. // {{{

toggle_color

public static void toggle_color()
Toggle trace color. // {{{

print_sepLine

public static void print_sepLine()
print_sepLine - Print a separator line. // {{{

LOG

public static void LOG(java.lang.String s)
LOG - Print log messages. // {{{

THR

public static void THR(java.lang.String s)
THR - Print trace messages. // {{{

MON

public static void MON(java.lang.String s)
MON - Print level 1 trace messages. // {{{

MON1

public static void MON1(java.lang.String s)
MON1 - Print level 1 trace messages. // {{{

MON2

public static void MON2(java.lang.String s)
MON2 - Print level 2 trace messages. // {{{

DBG

public static void DBG(java.lang.String s)
DBG - Print level 3 debug messages. // {{{

ERR

public static void ERR(java.lang.String s)
ERR - Print error messages. // {{{

OUT

public static void OUT(java.lang.String s)
OUT - Print messages. // {{{

TST

public static void TST(java.lang.String s)
TST - Print messages. // {{{

getAllCallerMethod

public static java.lang.String getAllCallerMethod()

getCallerMethod

public static java.lang.String getCallerMethod()

getCallerMethod

public static java.lang.String getCallerMethod(int last)

getCallerMethod

public static java.lang.String getCallerMethod(int last,
                                               java.lang.String tracerName)

getCallerMethod

public static java.lang.String getCallerMethod(int first,
                                               int last)

getCallerMethod

public static java.lang.String getCallerMethod(int first,
                                               int last,
                                               java.lang.String tracerName)

getStackTrace

public static java.lang.String getStackTrace()

getCallerMethod

public static java.lang.String getCallerMethod(int first,
                                               int last,
                                               java.lang.String tracerName,
                                               boolean method_name_Only)

adjust_TRAILER

private static void adjust_TRAILER(java.lang.String longerName)
Adjust TRAILER to the longest name so far.

MVC architecture

Document Tech Infos - Ivan Wellesz