app
Class SToCApplet.SToCALogger

java.lang.Object
  extended by app.SToCApplet.SToCALogger
All Implemented Interfaces:
Logger
Enclosing class:
SToCApplet

public static class SToCApplet.SToCALogger
extends java.lang.Object
implements Logger

Logger implementation for a SToC Applet, using standard output as the target for logging output, also providing a means (setLogEnabled(boolean)) of dynamically switching logging on and off.


Constructor Summary
SToCApplet.SToCALogger(java.lang.String enabledflag)
          Constructs a new logger, initially enabled or not as specified by the given flag string.
 
Method Summary
 void log(java.lang.String msg)
          Outputs the given message on the log writer, if SPA logging is enabled.
 void logb(java.lang.String msg)
          Outputs the given message on the log writer with no prefix (i.e.
 boolean logIsEnabled()
          Indicates if SPA logging is currently enabled.
 void logp(java.lang.String msg)
          Outputs the given message on the log writer with the standard prefix, if SPA logging is enabled.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SToCApplet.SToCALogger

public SToCApplet.SToCALogger(java.lang.String enabledflag)
Constructs a new logger, initially enabled or not as specified by the given flag string.

Method Detail

log

public final void log(java.lang.String msg)
Outputs the given message on the log writer, if SPA logging is enabled.

Specified by:
log in interface Logger

logp

public final void logp(java.lang.String msg)
Outputs the given message on the log writer with the standard prefix, if SPA logging is enabled.


logb

public final void logb(java.lang.String msg)
Outputs the given message on the log writer with no prefix (i.e. bare), if SPA logging is enabled.


logIsEnabled

public final boolean logIsEnabled()
Indicates if SPA logging is currently enabled.

Specified by:
logIsEnabled in interface Logger