scribe.handler

Type members

Classlikes

case class AsynchronousLogHandle(maxBuffer: Int, overflow: Overflow) extends LogHandle

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.

Value Params
formatter

the formatter to use (defaults to Formatter.default)

maxBuffer

the maximum buffer before overflow occurs (defaults to AsynchronousLogHandler.DefaultMaxBuffer)

modifiers

the modifiers

outputFormat

the output format to use (defaults to OutputFormat.default)

overflow

what to do with overflows (defaults to DropOld)

writer

the writer to use (defaults to ConsoleWriter)

Companion
object
final class AtomicLongExtras(val value: AtomicLong) extends AnyVal
case class FunctionalLogHandler(f: LogRecord[_] => Unit, modifiers: List[LogModifier]) extends LogHandler
trait LogHandle
trait LogHandler

LogHandler is responsible for causing some side-effect with a LogRecord. This usually includes formatting the record with a Formatter and writing it to a Writer, although some more creative implementations exist to do more advanced actions. LogHandlers are added to Logger instances via withHandler, although it's usually sufficient to use the withHandler method that takes a Formatter and Writer instead of defining a LogHandler manually.

LogHandler is responsible for causing some side-effect with a LogRecord. This usually includes formatting the record with a Formatter and writing it to a Writer, although some more creative implementations exist to do more advanced actions. LogHandlers are added to Logger instances via withHandler, although it's usually sufficient to use the withHandler method that takes a Formatter and Writer instead of defining a LogHandler manually.

Companion
object
object LogHandler
Companion
class
case class LogHandlerBuilder(formatter: Formatter, writer: Writer, outputFormat: OutputFormat, modifiers: List[LogModifier], handle: LogHandle) extends LogHandler
class LogOverflowException(message: String) extends RuntimeException
sealed trait Overflow
Companion
object
object Overflow

Overflow instructions for AsynchronousLogHandler

Overflow instructions for AsynchronousLogHandler

Companion
class

Implicits

Implicits

implicit def atomicExtras(l: AtomicLong): AtomicLongExtras