|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vrspace.util.Logger
First created Logger is accessible from static methods. Other loggers are not tested.
Field Summary | |
protected boolean |
active
|
static int |
DEBUG
|
static int |
ERROR
|
static int |
INFO
|
protected static Logger |
logger
|
protected static int |
logLevel
|
protected static boolean |
stop
|
static int |
WARNING
|
Constructor Summary | |
Logger()
|
|
Logger(java.io.PrintWriter out)
Creates Logger writing to out |
Method Summary | |
static int |
getLogLevel()
returns current log level |
static void |
log(int severity,
java.lang.String msg)
Log msg with specified severity, if severity is less or equal to current log level |
static void |
log(java.lang.String msg,
java.lang.Throwable t)
Log msg with specified severity, if severity is less or equal to current log level |
static void |
log(java.lang.Throwable t)
Log error |
static void |
logDebug(boolean b)
Log debugging info? |
static void |
logDebug(java.lang.String line)
Log line to debug stream |
static void |
logError(boolean b)
Log errors? |
static void |
logError(java.lang.String line)
Log line to error stream |
static void |
logError(java.lang.String msg,
java.lang.Throwable e)
|
static void |
logError(java.lang.Throwable e)
Log e to error stream |
static void |
logHeader(boolean b)
Include the log header? |
static void |
logInfo(boolean b)
Log info? |
static void |
logInfo(java.lang.String line)
Log line to info stream |
protected void |
logString(int severity,
java.lang.String msg)
|
protected void |
logThrowable(java.lang.String msg,
java.lang.Throwable t)
|
protected void |
logThrowable(java.lang.Throwable t)
|
static void |
logWarning(boolean b)
Log warnings? |
static void |
logWarning(java.lang.String line)
Log line to warning stream |
void |
run()
main loop |
static void |
setLogLevel(int level)
Set log level |
static void |
startStaticLogger()
Start the main logger if it hasn't been started yet. |
static void |
stopOnError(boolean stop)
Exit jvm on error? |
static void |
stopStaticLogger()
Stop the main logger. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static int logLevel
protected boolean active
protected static boolean stop
public static final int ERROR
public static final int WARNING
public static final int INFO
public static final int DEBUG
protected static Logger logger
Constructor Detail |
public Logger()
public Logger(java.io.PrintWriter out)
Method Detail |
public static void stopStaticLogger()
public static void startStaticLogger()
public void run()
run
in interface java.lang.Runnable
public static void log(int severity, java.lang.String msg)
public static void log(java.lang.String msg, java.lang.Throwable t)
public static void log(java.lang.Throwable t)
protected void logString(int severity, java.lang.String msg)
protected void logThrowable(java.lang.Throwable t)
protected void logThrowable(java.lang.String msg, java.lang.Throwable t)
public static void logHeader(boolean b)
public static void logError(boolean b)
public static void logInfo(boolean b)
public static void logDebug(boolean b)
public static void logWarning(boolean b)
public static void setLogLevel(int level)
public static int getLogLevel()
public static void stopOnError(boolean stop)
public static void logInfo(java.lang.String line)
public static void logDebug(java.lang.String line)
public static void logWarning(java.lang.String line)
public static void logError(java.lang.String line)
public static void logError(java.lang.Throwable e)
public static void logError(java.lang.String msg, java.lang.Throwable e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |