|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectagg.attribute.impl.VerboseControl
agg.attribute.impl.AttrSession
public class AttrSession
Output to a log window and other session-global methods.
Field Summary | |
---|---|
protected static java.lang.String |
osArch
System architecture. |
protected static java.lang.String |
osName
Operating system name. |
protected static java.io.ByteArrayOutputStream |
redirectStream
Redirection stream to use instead of System.out |
protected static java.io.PrintStream |
stdout
Temporary storage of the "System.out" stream, for the time of redirection. |
protected static boolean |
stdoutBeginOfLine
Flag indicating if caret at the beginning of stdout line. |
protected static byte |
stdoutIndentCount
Stdout indentation count. |
Fields inherited from class agg.attribute.impl.VerboseControl |
---|
logCond, logContext, logContextOfInstances, logCreation, logEvent, logFileIO, logJexParser, logMapping, logParseTree, logRemoveValue, logSetValue, logShowContextView, logShowLogWindow, logTrace, logVar, logWarning |
Constructor Summary | |
---|---|
AttrSession()
Initializing static state. |
Method Summary | |
---|---|
static void |
errPrintln(boolean logTopic,
java.lang.String msg)
Prints the specified message to the error view if the boolean value is true. |
static void |
errPrintln(java.lang.String msg)
Prints the specified message to the error view. |
protected static void |
grabStdOutput()
Beginning redirection of standard output. |
static boolean |
isWin32()
System queries. |
static void |
logAttrContext(AttrContext context,
java.lang.String msg)
prints detailed information about an AttrContext. |
static void |
logAttrContext(boolean topic,
AttrContext context,
java.lang.String msg)
prints detailed information about an AttrContext. |
static void |
logAttrInstance(AttrInstance instance,
java.lang.String msg)
prints detailed information about an AttrInstance. |
static void |
logAttrInstance(boolean topic,
AttrInstance instance,
java.lang.String msg)
prints detailed information about an AttrInstance. |
static void |
logPrintln(boolean logTopic,
java.lang.String msg)
Prints the specified message to the log view if the boolean value is true. |
static void |
logPrintln(java.lang.String msg)
Prints the specified message to the log view. |
protected static void |
releaseStdOutput()
Ending redirection of standard output and flushing the data to the logging window. |
static void |
stdoutPrint(boolean debugTopic,
java.lang.String msg)
Prints the specified message to stdout if the boolean value is true. |
static void |
stdoutPrintIndented(boolean debugTopic,
java.lang.String msg)
Prints the specified message indented to stdout if the boolean value is true. |
protected static void |
stdoutPrintIndented(java.lang.String msg)
Prints an indented line with the specified message. |
static void |
stdoutPrintln(boolean debugTopic,
java.lang.String msg)
Prints a line with the specified message to stdout if the boolean value is true. |
static void |
stdoutPrintOnEnter(boolean debugTopic,
java.lang.String msg)
Prints the specified message to stdout if the boolean value is true; indentation is incremented. |
static void |
stdoutPrintOnExit(boolean debugTopic,
java.lang.String msg)
Prints the specified message to stdout if the boolean value is true; indentation is decremented. |
static void |
warn(java.lang.Object sender,
java.lang.String msg)
|
static void |
warn(java.lang.Object sender,
java.lang.String msg,
boolean showStack)
|
static void |
warn(java.lang.Object sender,
java.lang.String msg,
java.lang.Exception ex)
|
static void |
warn(java.lang.Object sender,
java.lang.String msg,
java.lang.Exception ex,
boolean showStack)
|
Methods inherited from class agg.attribute.impl.VerboseControl |
---|
setDebug, setDebugContext, setDebugEvent, setDebugExpr |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.lang.String osName
protected static java.lang.String osArch
protected static byte stdoutIndentCount
protected static boolean stdoutBeginOfLine
protected static java.io.ByteArrayOutputStream redirectStream
protected static java.io.PrintStream stdout
Constructor Detail |
---|
public AttrSession()
Method Detail |
---|
public static boolean isWin32()
public static void logPrintln(java.lang.String msg)
public static void errPrintln(java.lang.String msg)
public static void logPrintln(boolean logTopic, java.lang.String msg)
public static void errPrintln(boolean logTopic, java.lang.String msg)
public static void warn(java.lang.Object sender, java.lang.String msg)
public static void warn(java.lang.Object sender, java.lang.String msg, boolean showStack)
public static void warn(java.lang.Object sender, java.lang.String msg, java.lang.Exception ex)
public static void warn(java.lang.Object sender, java.lang.String msg, java.lang.Exception ex, boolean showStack)
public static void stdoutPrint(boolean debugTopic, java.lang.String msg)
public static void stdoutPrintln(boolean debugTopic, java.lang.String msg)
public static void stdoutPrintOnEnter(boolean debugTopic, java.lang.String msg)
public static void stdoutPrintOnExit(boolean debugTopic, java.lang.String msg)
public static void stdoutPrintIndented(boolean debugTopic, java.lang.String msg)
protected static void stdoutPrintIndented(java.lang.String msg)
protected static void grabStdOutput()
protected static void releaseStdOutput()
public static void logAttrInstance(AttrInstance instance, java.lang.String msg)
public static void logAttrInstance(boolean topic, AttrInstance instance, java.lang.String msg)
public static void logAttrContext(AttrContext context, java.lang.String msg)
public static void logAttrContext(boolean topic, AttrContext context, java.lang.String msg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |