LogModifier

scribe.modify.LogModifier
See theLogModifier companion object

LogModifier is attached to Logger instances in order to manipulate LogRecords, before they are handled by a LogHandler.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def apply(record: LogRecord): Option[LogRecord]

Handles modification of a LogRecord

Handles modification of a LogRecord

Attributes

record

the record to modify

Returns:

Some LogRecord that should continue to propagate or None if the logging action should be canceled

def id: String

Represents a unique identifier for this type of modifier. This is used when adding a LogModifier to a Logger to replace by type.

Represents a unique identifier for this type of modifier. This is used when adding a LogModifier to a Logger to replace by type.

Attributes

Multiple LogModifiers attached to the same Logger are automatically sorted by Priority.

Multiple LogModifiers attached to the same Logger are automatically sorted by Priority.

Attributes

def withId(id: String): LogModifier

Concrete methods