|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.models.mips.tools.Log
Log to two different channels: log() and err(). Leaf methods can only use these methods, others have to call begin() and end() at this positions for correct spaces in front of the lines
Field Summary | |
static long |
cycleCounter
|
static char[] |
error
|
static boolean |
file
|
static int |
indent
|
static char[] |
leer
|
static boolean |
stdOut
|
Constructor Summary | |
Log()
|
Method Summary | |
static void |
begin(java.lang.String msg)
If a method calls other methods with log output it should call begin() at the beginning and end() at the end. |
static void |
end()
|
static void |
end(java.lang.String msg)
If begin() has been used end() must be used, too, to indicate the end of a logical block (normally a method). |
static void |
err(java.lang.String msg)
Standard error output, output is done to StdErr and, if turned on, to the logfile. |
static long |
getCycleCounter()
|
static boolean |
getFile()
|
static boolean |
getStdOut()
|
static void |
log(java.lang.String msg)
Standard log output. |
static void |
setCycleCounter(long newCycleCounter)
|
static void |
setFile(boolean newFile)
|
static void |
setStdOut(boolean newStdOut)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int indent
public static final char[] leer
public static final char[] error
public static boolean stdOut
public static boolean file
public static long cycleCounter
Constructor Detail |
public Log()
Method Detail |
public static void log(java.lang.String msg)
public static void err(java.lang.String msg)
public static void begin(java.lang.String msg)
public static void end(java.lang.String msg)
public static void end()
public static void setStdOut(boolean newStdOut)
public static boolean getStdOut()
public static void setFile(boolean newFile)
public static boolean getFile()
public static void setCycleCounter(long newCycleCounter)
public static long getCycleCounter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |