public abstract class AbstractLogHandler
extends java.util.logging.Handler
Constructor and Description |
---|
AbstractLogHandler() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the handler.
|
void |
flush()
Flushes the buffer.
|
java.util.logging.Filter |
getFilter() |
protected void |
printMessage(WriteStream os,
java.lang.String message,
java.lang.Object[] parameters) |
protected abstract void |
processFlush() |
protected abstract void |
processPublish(java.util.logging.LogRecord record) |
void |
publish(java.util.logging.LogRecord record)
Publishes the record.
|
void |
setFilter(java.util.logging.Filter filter)
Sets the filter.
|
java.lang.String |
toString() |
public void setFilter(java.util.logging.Filter filter)
setFilter
in class java.util.logging.Handler
public java.util.logging.Filter getFilter()
getFilter
in class java.util.logging.Handler
public final void publish(java.util.logging.LogRecord record)
publish
in class java.util.logging.Handler
protected abstract void processPublish(java.util.logging.LogRecord record)
protected abstract void processFlush()
protected void printMessage(WriteStream os, java.lang.String message, java.lang.Object[] parameters) throws java.io.IOException
java.io.IOException
public void flush()
flush
in class java.util.logging.Handler
public void close()
close
in class java.util.logging.Handler
public java.lang.String toString()
toString
in class java.lang.Object