public final class SimpleLog extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
enabled
If false, do no output.
|
| Constructor and Description |
|---|
SimpleLog()
Create a new SimpleLog object with logging enabled.
|
SimpleLog(boolean enabled)
Create a new SimpleLog object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
enabled()
Return whether logging is enabled.
|
void |
exdent()
Decreases indentation by one level.
|
void |
indent()
Increases indentation by one level.
|
void |
log(String format,
Object... args)
Log a message to System.out.
|
void |
logStackTrace()
Print a stack trace to System.out.
|
void |
resetIndent()
Resets indentation to none.
|
public SimpleLog()
public SimpleLog(boolean enabled)
enabled - whether the logger starts out enabledpublic boolean enabled()
@FormatMethod public void log(String format, Object... args)
format - format string for messageargs - values to be substituted into formatpublic void logStackTrace()
public void indent()
public void exdent()
public void resetIndent()