public final class LoggerResolver extends Object implements EventResolver
config = "field" -> ( "name" | "fqcn" )
{
"$resolver": "logger",
"field": "name"
}
Resolve the logger's fully qualified class name:
{
"$resolver": "logger",
"field": "fqcn"
}
| Modifier and Type | Method and Description |
|---|---|
void |
resolve(LogEvent logEvent,
JsonWriter jsonWriter)
Resolves the given
value using the provided JsonWriter. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFlattening, isResolvable, isResolvable, resolvepublic void resolve(LogEvent logEvent, JsonWriter jsonWriter)
TemplateResolvervalue using the provided JsonWriter.resolve in interface TemplateResolver<LogEvent>Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.