|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.structconf.util.Verbosity
Utility to control verbosity of output for structured configuration code at the thread local level, rather than rely upon a static final constant that cannot be changed. Thread localness is important for being able to create a long running server that can be made more verbose in order to diagnose problems without requiring a process restart.
Field Summary | |
static int |
DEBUG_VERBOSE
Obnoxious developer oriented debug output. |
static int |
DEFAULT
Default value - silent unless there are problems. |
static int |
VERBOSE
Basic, consumer oriented output. |
private static InheritableThreadLocal |
verbosity_
|
Constructor Summary | |
private |
Verbosity()
|
Method Summary | |
static boolean |
debugVerbose()
Whether or not the thread's verbosity level is DEBUG_VERBOSE |
static void |
error(String message)
|
static void |
error(String[] messages)
|
static void |
error(String message,
Throwable t)
|
static void |
error(Throwable t)
|
private static String |
getMessage(Throwable t)
|
private static int |
getVerbosity()
|
static void |
inform(String message)
|
static void |
inform(String[] messages)
|
static void |
informAlways(String message)
|
private static void |
log(Throwable t,
PrintStream ps)
Just show the message if verbosity is DEFAULT , and print stack trace
if it is VERBOSE or higher. |
private static void |
log(Throwable t,
PrintWriter pw)
Just show the message if verbosity is DEFAULT , and print stack trace
if it is VERBOSE or higher. |
static void |
setVerbosity(int level)
Change the verbosity level |
static boolean |
verbose()
Whether or not the thread's verbosity level is VERBOSE or higher. |
static void |
warn(String message)
|
static void |
warn(String[] messages)
|
static void |
warn(String message,
Throwable t)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int DEFAULT
public static int VERBOSE
public static int DEBUG_VERBOSE
private static final InheritableThreadLocal verbosity_
Constructor Detail |
private Verbosity()
Method Detail |
public static final void setVerbosity(int level)
private static final int getVerbosity()
public static final boolean verbose()
VERBOSE
or higher.
public static final boolean debugVerbose()
DEBUG_VERBOSE
private static String getMessage(Throwable t)
public static final void informAlways(String message)
public static final void inform(String message)
public static final void inform(String[] messages)
public static final void warn(String message)
public static final void warn(String[] messages)
public static final void warn(String message, Throwable t)
public static final void error(String message)
public static final void error(String[] messages)
public static final void error(Throwable t)
public static final void error(String message, Throwable t)
private static final void log(Throwable t, PrintStream ps)
DEFAULT
, and print stack trace
if it is VERBOSE
or higher.
private static final void log(Throwable t, PrintWriter pw)
DEFAULT
, and print stack trace
if it is VERBOSE
or higher.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |