public final class LoggingDnsQueryLifeCycleObserverFactory extends java.lang.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.
构造器和说明 |
---|
LoggingDnsQueryLifeCycleObserverFactory()
Create
DnsQueryLifecycleObserver instances that log events at the default LogLevel.DEBUG level. |
LoggingDnsQueryLifeCycleObserverFactory(java.lang.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(java.lang.String name,
LogLevel level)
Create
DnsQueryLifecycleObserver instances that log events to a logger with the given name context,
at the given log level. |
限定符和类型 | 方法和说明 |
---|---|
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(java.lang.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(java.lang.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
在接口中 DnsQueryLifecycleObserverFactory
question
- The question being asked.DnsQueryLifecycleObserver
.