public class Logger extends Object
Modifier and Type | Field and Description |
---|---|
static int |
LL_NORMAL |
static int |
LL_TRACE |
Modifier and Type | Method and Description |
---|---|
static void |
exception(Throwable e)
Logs exception.
|
int |
getLevel() |
static void |
info(String s) |
static void |
infoln(String s) |
static void |
init(PrintStream logger,
String loglevel) |
void |
setLevel(int iLogLevel) |
static void |
tori(String trace,
String normal)
Logs string depending on the actual log level.
|
static void |
trace(String s) |
static void |
traceln(String s) |
public static final int LL_NORMAL
public static final int LL_TRACE
public static void init(PrintStream logger, String loglevel)
public int getLevel()
public void setLevel(int iLogLevel)
public static void info(String s)
public static void trace(String s)
public static void infoln(String s)
public static void traceln(String s)
public static void exception(Throwable e)
e
- exception to logpublic static void tori(String trace, String normal)
trace
- string to log if current log level == LL_TRACEnormal
- string to log if current log level == LL_NORMALCopyright © 2004-2013 Deep Shift Labs. All Rights Reserved.