package handler
- Alphabetic
- By Inheritance
- handler
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
AsynchronousLogHandler(formatter: Formatter = Formatter.default, writer: Writer = ConsoleWriter, outputFormat: OutputFormat = OutputFormat.default, modifiers: List[LogModifier] = Nil, maxBuffer: Int = ..., overflow: Overflow = Overflow.DropOld) extends LogHandler with Product with Serializable
Provides support for asynchronous logging to process the log record in another thread and avoid any blocking.
Provides support for asynchronous logging to process the log record in another thread and avoid any blocking.
- formatter
the formatter to use (defaults to Formatter.default)
- writer
the writer to use (defaults to ConsoleWriter)
- outputFormat
the output format to use (defaults to OutputFormat.default)
- modifiers
the modifiers
- maxBuffer
the maximum buffer before overflow occurs (defaults to AsynchronousLogHandler.DefaultMaxBuffer)
- overflow
what to do with overflows (defaults to DropOld)
- final class AtomicLongExtras extends AnyVal
- case class FunctionalLogHandler(f: (LogRecord[_]) ⇒ Unit, modifiers: List[LogModifier]) extends LogHandler with Product with Serializable
-
trait
LogHandler extends AnyRef
LogHandler is responsible for causing some side-effect with a
LogRecord
.LogHandler is responsible for causing some side-effect with a
LogRecord
. This usually includes formatting the record with aFormatter
and writing it to aWriter
, although some more creative implementations exist to do more advanced actions. LogHandlers are added toLogger
instances viawithHandler
, although it's usually sufficient to use thewithHandler
method that takes aFormatter
andWriter
instead of defining aLogHandler
manually. - class LogOverflowException extends RuntimeException
- sealed trait Overflow extends AnyRef
- case class SynchronousLogHandler(formatter: Formatter = Formatter.default, writer: Writer = ConsoleWriter, outputFormat: OutputFormat = OutputFormat.default, modifiers: List[LogModifier] = Nil) extends LogHandler with Product with Serializable
Value Members
- implicit def atomicExtras(l: AtomicLong): AtomicLongExtras
- object AsynchronousLogHandler extends Serializable
- object LogHandler
-
object
Overflow
Overflow instructions for AsynchronousLogHandler
- object SynchronousLogHandler extends Serializable