de.unkrig.commons.util.logging.handler
Class EagerHandler
java.lang.Object
java.util.logging.Handler
de.unkrig.commons.util.logging.handler.ProxyHandler
de.unkrig.commons.util.logging.handler.EagerHandler
public class EagerHandler
- extends ProxyHandler
A Handler that formats its message immediately and forwards it to a delegate. This is useful if
mutable objects are used as log record parameters, and the delegate handler formats messages with a delay
(like MemoryHandler.
This may cause noticable costs if the objects' ObjectObject.toString() methods are expensive and/or return large
strings.
|
Method Summary |
void |
publish(java.util.logging.LogRecord record)
|
| Methods inherited from class de.unkrig.commons.util.logging.handler.ProxyHandler |
close, flush, getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, setDelegate, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
| Methods inherited from class java.util.logging.Handler |
reportError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EagerHandler
public EagerHandler()
throws ParseException,
EvaluationException
- Throws:
ParseException
EvaluationException
EagerHandler
public EagerHandler(@Nullable
java.lang.String propertyNamePrefix)
throws ParseException,
EvaluationException
- Throws:
ParseException
EvaluationException
publish
public void publish(java.util.logging.LogRecord record)
- Overrides:
publish in class ProxyHandler