|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gxos.debug.Log
Provides methods for debugging.
$Id: Log.java,v 1.8 2001/10/09 18:53:52 balsoy Exp $
Constructor Summary | |
Log()
|
Method Summary | |
static void |
debug(boolean d)
Sets debug mode on or off. |
static void |
debug(java.lang.Object obj,
java.lang.String msg)
Prints debug message along with an object. |
static void |
debug(java.lang.String msg)
Prints a debug message with a date preceding it. |
static void |
error(java.lang.String err)
Prints errors messages if used to the error output stream. |
static java.io.Writer |
getDebugWriter()
Returns the debug writer which is used by the logger. |
static void |
msg(java.lang.String msg)
Prints message to the log output. |
static void |
setDebugWriter(java.io.Writer writer)
Redirects debug messages to another output stream. |
static void |
setErrorWriter(java.io.Writer writer)
Redirects error messages to another output stream. |
static void |
setMessageWriter(java.io.Writer writer)
Redirects regular messages to another output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Log()
Method Detail |
public static void setDebugWriter(java.io.Writer writer)
writer
- an alternative writer object on which debug messages
will be printed. If null, debug messages are stopped.public static java.io.Writer getDebugWriter()
public static void setErrorWriter(java.io.Writer writer)
writer
- an alternative writer object on which error messages
will be printed. If null, error messages are stopped.public static void setMessageWriter(java.io.Writer writer)
writer
- an alternative writer object on which regular messages
will be printed. If null, regular messages are stopped.public static void debug(boolean d)
d
- Debug messages printed if true; otherwise no message sent
to the log output stream.public static void debug(java.lang.String msg)
msg
- Message to be printed.public static void debug(java.lang.Object obj, java.lang.String msg)
obj
- Object related to the message or context.msg
- Message to be printed.public static void error(java.lang.String err)
err
- Error message to be printed.public static void msg(java.lang.String msg)
msg
- Message to be printed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |