class QueueingHandler extends ProxyHandler
Proxy handler that queues log records and publishes them in another thread to a nested handler. Useful for when a handler may block.
- Alphabetic
- By Inheritance
- QueueingHandler
- ProxyHandler
- Handler
- Handler
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new QueueingHandler(handler: Handler)
- new QueueingHandler(handler: Handler, maxQueueSize: Int)
- new QueueingHandler(handler: Handler, maxQueueSize: Int, inferClassNames: Boolean)
- handler
Wrapped handler that publishing is proxied to.
- maxQueueSize
Maximum queue size. Records are sent to onOverflow when it is at capacity.
- inferClassNames
com.twitter.logging.LogRecord and
java.util.logging.LogRecord
both attempt to infer the class and method name of the caller, but the inference needs the stack trace at the time that the record is logged. QueueingHandler breaks the inference because the log record is rendered out of band, so the stack trace is gone. Setting this option to true will cause the introspection to happen before the log record is queued, which means that the class name and method name will be available when the log record is passed to the underlying handler. This defaults to false because it loses some of the latency improvements of deferring logging by getting the stack trace synchronously.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(): Unit
- Definition Classes
- QueueingHandler → ProxyHandler → Handler
- val dropLogNode: String
- Attributes
- protected
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flush(): Unit
- Definition Classes
- QueueingHandler → ProxyHandler → Handler
- val formatter: Formatter
- Definition Classes
- Handler
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getEncoding(): String
- Definition Classes
- ProxyHandler → Handler
- def getErrorManager(): ErrorManager
- Definition Classes
- ProxyHandler → Handler
- def getFilter(): Filter
- Definition Classes
- ProxyHandler → Handler
- def getFormatter(): java.util.logging.Formatter
- Definition Classes
- ProxyHandler → Handler
- def getLevel(): java.util.logging.Level
- Definition Classes
- ProxyHandler → Handler
- val handler: Handler
- Definition Classes
- ProxyHandler
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLoggable(record: java.util.logging.LogRecord): Boolean
- Definition Classes
- ProxyHandler → Handler
- val level: Option[Level]
- Definition Classes
- Handler
- val log: Logger
- Attributes
- protected
- val maxQueueSize: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def onOverflow(record: java.util.logging.LogRecord): Unit
Called when record dropped.
Called when record dropped. Default is to log to console.
- Attributes
- protected
- def publish(record: java.util.logging.LogRecord): Unit
- Definition Classes
- QueueingHandler → ProxyHandler → Handler
- def reportError(arg0: String, arg1: Exception, arg2: Int): Unit
- Attributes
- protected[java.util.logging]
- Definition Classes
- Handler
- def setEncoding(encoding: String): Unit
- Definition Classes
- ProxyHandler → Handler
- def setErrorManager(errorManager: ErrorManager): Unit
- Definition Classes
- ProxyHandler → Handler
- def setFilter(filter: Filter): Unit
- Definition Classes
- ProxyHandler → Handler
- def setFormatter(formatter: java.util.logging.Formatter): Unit
- Definition Classes
- ProxyHandler → Handler
- def setLevel(level: java.util.logging.Level): Unit
- Definition Classes
- ProxyHandler → Handler
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Handler → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()