public class EagerHandler extends ProxyHandler
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.
| Constructor and Description |
|---|
EagerHandler() |
EagerHandler(String propertyNamePrefix) |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(LogRecord record) |
close, flush, getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, setDelegate, setEncoding, setErrorManager, setFilter, setFormatter, setLevelreportErrorpublic EagerHandler()
throws ParseException,
EvaluationException
ParseExceptionEvaluationExceptionpublic EagerHandler(@Nullable
String propertyNamePrefix)
throws ParseException,
EvaluationException
ParseExceptionEvaluationExceptionpublic void publish(@Nullable
LogRecord record)
publish in class ProxyHandlerCopyright © 2018 Arno Unkrig. All rights reserved.