← ZIO Logging docs

LogFilter

zio.logging.LogFilter
See theLogFilter companion object
sealed trait LogFilter[-Message]

A LogFilter represents function/conditions for log filtering

Attributes

Companion
object
Source
LogFilter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
LogFilter[Message]

Members list

Type members

Types

type Value

Attributes

Source
LogFilter.scala

Value members

Abstract methods

def group: LogGroup[Message, Value]

Attributes

Source
LogFilter.scala
def predicate(value: Value): Boolean

Attributes

Source
LogFilter.scala

Concrete methods

final def &&[M <: Message](other: LogFilter[M]): LogFilter[M]

Returns a new log filter which satisfy result of this and given log filter

Returns a new log filter which satisfy result of this and given log filter

Attributes

Source
LogFilter.scala
final def and[M <: Message](other: LogFilter[M]): LogFilter[M]

The alphanumeric version of the && operator.

The alphanumeric version of the && operator.

Attributes

Source
LogFilter.scala
final def apply(trace: Trace, fiberId: FiberId, logLevel: LogLevel, message: () => Message, cause: Cause[Any], context: FiberRefs, spans: List[LogSpan], annotations: Map[String, String]): Boolean

Attributes

Source
LogFilter.scala
final def cached: LogFilter[Message]

Returns a new log filter with cached results

Returns a new log filter with cached results

Attributes

Source
LogFilter.scala
final def contramap[M](f: M => Message): LogFilter[M]

Attributes

Source
LogFilter.scala
final def filter[M <: Message, O](logger: ZLogger[M, O]): ZLogger[M, Option[O]]

Returns a version of logger that only logs messages when this filter is satisfied

Returns a version of logger that only logs messages when this filter is satisfied

Attributes

Source
LogFilter.scala
final def not: LogFilter[Message]

The alphanumeric version of the ! operator.

The alphanumeric version of the ! operator.

Attributes

Source
LogFilter.scala
final def or[M <: Message](other: LogFilter[M]): LogFilter[M]

The alphanumeric version of the || operator.

The alphanumeric version of the || operator.

Attributes

Source
LogFilter.scala
final def unary_!: LogFilter[Message]

Returns a new log filter with negated result

Returns a new log filter with negated result

Attributes

Source
LogFilter.scala
final def ||[M <: Message](other: LogFilter[M]): LogFilter[M]

Returns a new log filter which satisfy result of this or given log filter

Returns a new log filter which satisfy result of this or given log filter

Attributes

Source
LogFilter.scala