org.placelab.util
Class Logger
java.lang.Object
org.placelab.util.Logger
- public class Logger
- extends java.lang.Object
Dead simple logging for debugging text.
You can submit debugging text with 2 levels:
Logger.LOW and Logger.HIGH
and you can set the system property
placelab.Logger.level to
OFF, LOW, and HIGH, default is LOW.
You can redirect the logger to a file by setting
the placelab.Logger.out to a file of your choice
or STDOUT or STDERR. Default is STDOUT.
|
Field Summary |
static int |
HIGH
|
protected int |
level
|
static int |
LOW
|
static int |
MEDIUM
|
protected java.io.PrintStream |
out
|
|
Constructor Summary |
protected |
Logger()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOW
public static int LOW
MEDIUM
public static int MEDIUM
HIGH
public static int HIGH
out
protected java.io.PrintStream out
level
protected int level
Logger
protected Logger()
getLogger
protected static Logger getLogger()
print
public static void print(java.lang.String msg,
int level)
println
public static void println(java.lang.String msg,
int level)
setLogLevel
public static void setLogLevel(int level)
getLogLevel
public static int getLogLevel()