scribe.handler

package scribe.handler

Members list

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 parameters

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)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait LogHandle
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final class AtomicLongExtras(val value: AtomicLong) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
case class CachingLogHandler(maxBuffer: Int) extends LogHandler

CachingLogHandler provides a convenient LogHandler to cache LogRecords and drop old records if the record count overflows.

CachingLogHandler provides a convenient LogHandler to cache LogRecords and drop old records if the record count overflows.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait LogHandler
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class FunctionalLogHandler(f: LogRecord => Unit, modifiers: List[LogModifier]) extends LogHandler

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait LogHandler
class Object
trait Matchable
class Any
Show all
trait LogHandle

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
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.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object LogHandler

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
LogHandler.type
case class LogHandlerBuilder(formatter: Formatter, writer: Writer, outputFormat: OutputFormat, modifiers: List[LogModifier], handle: LogHandle) extends LogHandler

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait LogHandler
class Object
trait Matchable
class Any
Show all
class LogOverflowException(message: String) extends RuntimeException

Attributes

Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
sealed trait Overflow

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Block.type
object DropNew.type
object DropOld.type
object Error.type
object Overflow

Overflow instructions for AsynchronousLogHandler

Overflow instructions for AsynchronousLogHandler

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Overflow.type

Attributes

Supertypes
trait LogHandle
class Object
trait Matchable
class Any
Self type

Implicits

Implicits

implicit def atomicExtras(l: AtomicLong): AtomicLongExtras