webfunds.utils
Class Debug
java.lang.Object
|
+--webfunds.utils.Debug
- Direct Known Subclasses:
- AccountBrowserImpl, BasicAgent, CommsAgent, Contract, Core, DirContractStore, DirSOXStore, Manager, RawHttp, SimpleIssuer, SmartIssuer, SOXWallet, StoreAccountStore, StoreReceiptStore
- public abstract class Debug
- extends java.lang.Object
- implements Diagnostics
Extend this to add the logmsg() method.
|
Field Summary |
protected java.io.PrintWriter |
bug
|
static boolean |
debugAll
|
protected java.lang.String |
logfix
|
|
Constructor Summary |
Debug()
|
|
Method Summary |
void |
debug()
Set debug stream. |
void |
debug(java.io.PrintWriter pw)
|
void |
debug(java.io.PrintWriter pw,
java.lang.String s)
|
void |
debug(java.lang.String s)
|
java.io.PrintWriter |
err()
Do stack trace prints to err(). |
java.io.PrintWriter |
getDebug()
Returns a debug writer, if any is set. |
void |
logend(java.lang.String s)
|
void |
logmsg(java.lang.String s)
|
void |
logstart(java.lang.String s)
|
void |
logword(java.lang.String s)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
bug
protected java.io.PrintWriter bug
debugAll
public static boolean debugAll
logfix
protected java.lang.String logfix
Debug
public Debug()
debug
public void debug()
- Set debug stream.
- Parameters:
pw - The PrintWriter stream to send debugging information to.
A null value disables debugging.
debug
public void debug(java.io.PrintWriter pw)
debug
public void debug(java.io.PrintWriter pw,
java.lang.String s)
debug
public void debug(java.lang.String s)
logmsg
public void logmsg(java.lang.String s)
- Specified by:
- logmsg in interface Diagnostics
logstart
public void logstart(java.lang.String s)
logword
public void logword(java.lang.String s)
logend
public void logend(java.lang.String s)
getDebug
public java.io.PrintWriter getDebug()
- Description copied from interface: Diagnostics
- Returns a debug writer, if any is set.
- Specified by:
- getDebug in interface Diagnostics
err
public java.io.PrintWriter err()
- Do stack trace prints to err().
- Specified by:
- err in interface Diagnostics