public class IstiLogFileHandler
extends java.util.logging.Handler
Modifier and Type | Field and Description |
---|---|
protected LogFile |
istiLogObj
Target ISTI LogFile object.
|
protected static java.util.Map<java.util.logging.Level,java.lang.Integer> |
levelXlatTable
Translation table, Java Logger levels to ISTI LogFile levels.
|
Constructor and Description |
---|
IstiLogFileHandler(LogFile lObj)
Creates a Java logging Handler that publishes its messages into an
ISTI LogFile object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected final LogFile istiLogObj
protected static final java.util.Map<java.util.logging.Level,java.lang.Integer> levelXlatTable
public IstiLogFileHandler(LogFile lObj)
lObj
- target ISTI LogFile object.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.