LogModifier

scribe.modify.LogModifier
See theLogModifier companion object
trait LogModifier

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

Value members

Abstract methods

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

Handles modification of a LogRecord

Handles modification of a LogRecord

Value parameters

record

the record to modify

Attributes

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