public final class LoggingDnsQueryLifeCycleObserverFactory extends Object implements DnsQueryLifecycleObserverFactory
DnsQueryLifecycleObserverFactory
that enables detailed logging in the DnsNameResolver
.
When configured on the resolver, detailed trace information will be generated so that it is easier to understand the cause of resolution failure.
Constructor and Description |
---|
LoggingDnsQueryLifeCycleObserverFactory()
Create
DnsQueryLifecycleObserver instances that log events at the default LogLevel.DEBUG level. |
LoggingDnsQueryLifeCycleObserverFactory(Class<?> classContext,
LogLevel level)
Create
DnsQueryLifecycleObserver instances that log events to a logger with the given class context,
at the given log level. |
LoggingDnsQueryLifeCycleObserverFactory(LogLevel level)
Create
DnsQueryLifecycleObserver instances that log events at the given log level. |
LoggingDnsQueryLifeCycleObserverFactory(String name,
LogLevel level)
Create
DnsQueryLifecycleObserver instances that log events to a logger with the given name context,
at the given log level. |
Modifier and Type | Method and Description |
---|---|
DnsQueryLifecycleObserver |
newDnsQueryLifecycleObserver(DnsQuestion question)
Create a new instance of a
DnsQueryLifecycleObserver . |
public LoggingDnsQueryLifeCycleObserverFactory()
DnsQueryLifecycleObserver
instances that log events at the default LogLevel.DEBUG
level.public LoggingDnsQueryLifeCycleObserverFactory(LogLevel level)
DnsQueryLifecycleObserver
instances that log events at the given log level.level
- The log level to use for logging resolver events.public LoggingDnsQueryLifeCycleObserverFactory(Class<?> classContext, LogLevel level)
DnsQueryLifecycleObserver
instances that log events to a logger with the given class context,
at the given log level.classContext
- The class context for the logger to use.level
- The log level to use for logging resolver events.public LoggingDnsQueryLifeCycleObserverFactory(String name, LogLevel level)
DnsQueryLifecycleObserver
instances that log events to a logger with the given name context,
at the given log level.name
- The name for the logger to use.level
- The log level to use for logging resolver events.public DnsQueryLifecycleObserver newDnsQueryLifecycleObserver(DnsQuestion question)
DnsQueryLifecycleObserverFactory
DnsQueryLifecycleObserver
. This will be called at the start of a new query.newDnsQueryLifecycleObserver
in interface DnsQueryLifecycleObserverFactory
question
- The question being asked.DnsQueryLifecycleObserver
.Copyright © 2008–2024 The Netty Project. All rights reserved.