public static class SToCApplet.SToCALogger extends java.lang.Object implements UseJLogger
setLogEnabled(boolean)
) of dynamically switching logging
on and off.Constructor and Description |
---|
SToCALogger(java.lang.String enabledflag)
Constructs a new logger, initially enabled or not as specified
by the given flag string.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public SToCALogger(java.lang.String enabledflag)
public final void log(java.lang.String msg)
log
in interface UseJLogger
public final void logp(java.lang.String msg)
public final void logb(java.lang.String msg)
public final boolean logIsEnabled()
logIsEnabled
in interface UseJLogger