← ZIO Logging docs

FilteredLogger

zio.logging.FilteredLogger
final case class FilteredLogger[Message, Output](logger: ZLogger[Message, Output], filter: LogFilter[Message]) extends ZLogger[Message, Option[Output]]

Attributes

Source
FilteredLogger.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ZLogger[Message, Option[Output]]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def apply(trace: Trace, fiberId: FiberId, logLevel: LogLevel, message: () => Message, cause: Cause[Any], context: FiberRefs, spans: List[LogSpan], annotations: Map[String, String]): Option[Output]

Attributes

Definition Classes
Source
FilteredLogger.scala
def withFilter(newFilter: LogFilter[Message]): FilteredLogger[Message, Output]

Attributes

Source
FilteredLogger.scala

Inherited methods

def ++[M <: Message, O](that: ZLogger[M, O])(implicit zippable: Zippable[Option[Output], O]): ZLogger[M, zippable.Out]

Combines this logger with the specified logger to produce a new logger that logs to both this logger and that logger.

Combines this logger with the specified logger to produce a new logger that logs to both this logger and that logger.

Attributes

Inherited from:
ZLogger
Source
ZLogger.scala
def +>[M <: Message, O](that: ZLogger[M, O]): ZLogger[M, O]

Attributes

Inherited from:
ZLogger
Source
ZLogger.scala
def <+[M <: Message](that: ZLogger[M, Any]): ZLogger[M, Option[Output]]

Attributes

Inherited from:
ZLogger
Source
ZLogger.scala
final def contramap[Message1](f: Message1 => Message): ZLogger[Message1, Option[Output]]

Attributes

Inherited from:
ZLogger
Source
ZLogger.scala
final def filterLogLevel(f: LogLevel => Boolean): ZLogger[Message, Option[Option[Output]]]

Returns a version of this logger that only logs messages when the log level satisfies the specified predicate.

Returns a version of this logger that only logs messages when the log level satisfies the specified predicate.

Attributes

Inherited from:
ZLogger
Source
ZLogger.scala
final def map[B](f: Option[Output] => B): ZLogger[Message, B]

Attributes

Inherited from:
ZLogger
Source
ZLogger.scala

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala
final def test(input: => Message): Option[Output]

Attributes

Inherited from:
ZLogger
Source
ZLogger.scala