|
|||||||||
| Home >> All >> org >> vrspace >> [ neurogrid overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.vrspace.neurogrid
Class Logger

java.lang.Objectorg.vrspace.neurogrid.Logger
- All Implemented Interfaces:
- java.lang.Runnable
- public class Logger
- extends java.lang.Object
- implements java.lang.Runnable
- extends java.lang.Object
First created Logger is accessible from static methods. Other loggers are not tested.
| Field Summary | |
(package private) boolean |
active
|
(package private) static java.util.Calendar |
calendar
|
static int |
DEBUG
|
(package private) static java.lang.String[] |
desc
|
static int |
ERROR
|
static int |
INFO
|
(package private) static boolean |
isLogDebug
|
(package private) static boolean |
isLogError
|
(package private) static boolean |
isLogInfo
|
(package private) static boolean |
isLogWarning
|
(package private) static boolean |
isVerbose
|
(package private) static Logger |
logger
|
(package private) static int |
logLevel
|
(package private) java.io.PrintWriter |
myOut
|
(package private) static java.io.PrintWriter |
out
|
(package private) static boolean |
stop
|
(package private) static boolean |
stopOnError
|
(package private) static java.lang.Thread |
thread
|
static int |
WARNING
|
| Constructor Summary | |
Logger()
|
|
Logger(java.io.PrintWriter out)
Creates Logger writing to out |
|
| Method Summary | |
(package private) void |
flush()
|
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 |
void |
log(java.lang.Object type,
java.lang.Object line)
|
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 |
private static void |
logHeader(int severity)
|
static void |
logInfo(boolean b)
Log info? |
static void |
logInfo(java.lang.String line)
Log line to info stream |
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 |
stopOnError(boolean stop)
Exit jvm on error? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
isLogInfo
static boolean isLogInfo
isLogDebug
static boolean isLogDebug
isLogError
static boolean isLogError
isLogWarning
static boolean isLogWarning
isVerbose
static boolean isVerbose
stopOnError
static boolean stopOnError
logLevel
static int logLevel
out
static java.io.PrintWriter out
myOut
java.io.PrintWriter myOut
active
boolean active
thread
static java.lang.Thread thread
stop
static boolean stop
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
WARNING
public static final int WARNING
- See Also:
- Constant Field Values
INFO
public static final int INFO
- See Also:
- Constant Field Values
DEBUG
public static final int DEBUG
- See Also:
- Constant Field Values
desc
static final java.lang.String[] desc
calendar
static java.util.Calendar calendar
logger
static Logger logger
| Constructor Detail |
Logger
public Logger()
Logger
public Logger(java.io.PrintWriter out)
- Creates Logger writing to out
| Method Detail |
run
public void run()
- main loop
- Specified by:
runin interfacejava.lang.Runnable
flush
void flush()
log
public void log(java.lang.Object type, java.lang.Object line)
logHeader
private static void logHeader(int severity)
log
public static void log(int severity,
java.lang.String msg)
- Log msg with specified severity, if severity is less or equal to current log level
log
public static void log(java.lang.Throwable t)
- Log error
logError
public static void logError(boolean b)
- Log errors?
logInfo
public static void logInfo(boolean b)
- Log info?
logDebug
public static void logDebug(boolean b)
- Log debugging info?
logWarning
public static void logWarning(boolean b)
- Log warnings?
setLogLevel
public static void setLogLevel(int level)
- Set log level
getLogLevel
public static int getLogLevel()
- returns current log level
stopOnError
public static void stopOnError(boolean stop)
- Exit jvm on error?
logInfo
public static void logInfo(java.lang.String line)
- Log line to info stream
logDebug
public static void logDebug(java.lang.String line)
- Log line to debug stream
logWarning
public static void logWarning(java.lang.String line)
- Log line to warning stream
logError
public static void logError(java.lang.String line)
- Log line to error stream
logError
public static void logError(java.lang.Throwable e)
- Log e to error stream
logError
public static void logError(java.lang.String msg, java.lang.Throwable e)
|
|||||||||
| Home >> All >> org >> vrspace >> [ neurogrid overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.vrspace.neurogrid.Logger