|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmako5.util.Log
public final class Log
The need for a global logging system was seen. The output can be redirected to multiple locations given the type of message required. At the same time all messages can be sent to the same source if desired and setup properly.
System.out.println(...) will no longer be used as a result, and the logs will be able to be used for End-user problem identification if needed.
Field Summary | |
---|---|
static int |
DEBUG
Bit flag used to indicate something pertaining to a debug-only message. |
static int |
ERROR
Bit flag used to indicate something pertaining to an error message. |
static int |
OUT
Bit flag used to indicate something pertaining to an output message. |
Method Summary | |
---|---|
static void |
disable(int targets_)
Disable streams that will print messages. |
static void |
enable(int targets_)
Enables streams that will print messages. |
static void |
println(String message_,
int targets_)
Prints something to the given streams. |
static void |
setStream(PrintStream stream_,
int flags_)
Sets the requested streams. |
static void |
setTrace(int targets_)
Sets the streams that will be traced. |
static void |
stackTrace(int targets_)
Prints a stack trace to the requested targets. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ERROR
public static final int OUT
public static final int DEBUG
Method Detail |
---|
public static void setStream(PrintStream stream_, int flags_)
stream_
- the new stream_flags_
- the streams to setpublic static void stackTrace(int targets_)
targets_
- the flags for requested streamspublic static void println(String message_, int targets_)
message_
- what to printtargets_
- the target stream(s)public static void enable(int targets_)
targets_
- the flags for requested streamspublic static void disable(int targets_)
targets_
- the flags for requested streamspublic static void setTrace(int targets_)
targets_
- the streams that should be traced
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |