public class Trace extends Object
Code as follows:
if (Trace.foo) Trace.trace("trace msg"...);Enable as follows:
java -Dtrace.foo -Dtrace.foo2 -Dtrace.foo3 or -Dtrace.all
Special flags:
-Dtrace.flex -- enables all tracing
-Dtrace.foo -- enables tracing on foo subsystem
-Dtrace.timeStamp -- timeStamp all output lines
-Dtrace.caller -- print the Class:method caller
-Dtrace.stackLines=10 -- print 10 stack lines
-Dtrace.stackPrefix=java.lang -- print the stack up to java.lang
Add new xxx members as desired.
Modifier and Type | Field and Description |
---|---|
static boolean |
accessible |
static boolean |
all |
static boolean |
asdoc |
static boolean |
binding |
static boolean |
cache |
static boolean |
caller |
static boolean |
config |
static boolean |
css |
static boolean |
dependency |
static boolean |
embed |
static boolean |
error |
static boolean |
font |
static boolean |
font_cubic |
static boolean |
license |
static boolean |
mxml |
static boolean |
pathResolver |
static boolean |
phase |
static boolean |
phaseabc |
static boolean |
profiler |
static int |
stackLines |
static String |
stackPrefix |
static boolean |
swc |
static boolean |
swcChecksum |
static boolean |
timeStamp |
static boolean |
timeStampMs |
static boolean |
timeStampMsRel |
Constructor and Description |
---|
Trace() |
public static final boolean all
public static final boolean phase
public static final boolean phaseabc
public static final boolean accessible
public static final boolean asdoc
public static final boolean cache
public static final boolean css
public static final boolean dependency
public static final boolean config
public static final boolean embed
public static final boolean error
public static final boolean font
public static final boolean font_cubic
public static final boolean license
public static final boolean mxml
public static final boolean profiler
public static final boolean swc
public static final boolean pathResolver
public static final boolean binding
public static final boolean caller
public static final String stackPrefix
public static final int stackLines
public static final boolean timeStamp
public static final boolean timeStampMs
public static final boolean timeStampMsRel
public static final boolean swcChecksum
public static void trace(String str)
public static void resetRel()
Copyright © 2016 The Apache Software Foundation. All rights reserved.