|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Handler
com.isti.util.IstiLogFileHandler
public class IstiLogFileHandler
Class IstiLogFileHandler is a Java logging Handler that publishes its messages into an ISTI LogFile object. Logging levels are converted.
Field Summary | |
---|---|
protected LogFile |
istiLogObj
Target ISTI LogFile object. |
protected static java.util.HashMap |
levelXlatTable
Translation table, Java Logger levels to ISTI LogFile levels. |
Constructor Summary | |
---|---|
IstiLogFileHandler(LogFile lObj)
Creates a Java logging Handler that publishes its messages into an ISTI LogFile object. |
Method Summary | |
---|---|
void |
close()
Close the Handler. |
void |
flush()
Flush any buffered output. |
static java.util.logging.Level |
levelFromIstiLevel(int levelVal)
Converts the given ISTI LogFile level value to the corresponding Java-logging 'Level' object. |
static int |
levelToIstiLevel(java.util.logging.Level levelObj)
Converts the given Java-logging 'Level' object to the corresponding ISTI LogFile level value. |
void |
publish(java.util.logging.LogRecord recObj)
Publishes the given message into the ISTI LogFile object. |
Methods inherited from class java.util.logging.Handler |
---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final LogFile istiLogObj
protected static final java.util.HashMap levelXlatTable
Constructor Detail |
---|
public IstiLogFileHandler(LogFile lObj)
lObj
- target ISTI LogFile object.Method Detail |
---|
public void publish(java.util.logging.LogRecord recObj)
publish
in class java.util.logging.Handler
recObj
- log record to be published, or null for no action.public void flush()
flush
in class java.util.logging.Handler
public void close()
close
in class java.util.logging.Handler
public static int levelToIstiLevel(java.util.logging.Level levelObj)
levelObj
- Java-logging 'Level' object to be converted.
public static java.util.logging.Level levelFromIstiLevel(int levelVal)
levelVal
- the ISTI LogFile level value to be converted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |