|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Logger
cds.util.DebugLog
Debugger log
Field Summary | |
private static java.util.logging.Level |
DEFAULT_LEVEL
|
private static DebugFormat |
df
|
private java.util.logging.Level |
lev
|
private java.util.logging.Logger |
log
|
private static java.util.logging.LogManager |
logman
|
private java.util.logging.Logger |
toplog
|
Fields inherited from class java.util.logging.Logger |
global |
Constructor Summary | |
DebugLog(java.lang.String name)
Constructor |
Method Summary | |
static DebugLog |
getLog(java.lang.String name)
|
void |
setConsole(boolean doit)
Specifies the Console (stderr) output |
void |
setFile(java.lang.String filename,
boolean append)
Set a file output |
void |
setLevel(java.util.logging.Level lev)
Set the logging level |
Methods inherited from class java.util.logging.Logger |
addHandler, config, entering, entering, entering, exiting, exiting, fine, finer, finest, getAnonymousLogger, getAnonymousLogger, getFilter, getHandlers, getLevel, getLogger, getLogger, getName, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, info, isLoggable, log, log, log, log, log, logp, logp, logp, logp, logrb, logrb, logrb, logrb, removeHandler, setFilter, setParent, setUseParentHandlers, severe, throwing, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.util.logging.Level DEFAULT_LEVEL
private java.util.logging.Logger log
private java.util.logging.Logger toplog
private java.util.logging.Level lev
private static java.util.logging.LogManager logman
private static final DebugFormat df
Constructor Detail |
public DebugLog(java.lang.String name)
name
- Name of the Logger. It can be found anywhere byMethod Detail |
public static DebugLog getLog(java.lang.String name)
public void setLevel(java.util.logging.Level lev)
lev
- logging level (from Level.SEVERE to Level.FINEST)public void setFile(java.lang.String filename, boolean append)
filename
- name of the fileappend
- true if the output should be appended to the filepublic void setConsole(boolean doit)
doit
- true if the output should also be redirected to stderr.
This is independant of a file output
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |