FilteredLogger

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

Attributes

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

Attributes

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

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
def +>[M <: Message, O](that: ZLogger[M, O]): ZLogger[M, O]

Attributes

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

Attributes

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

Attributes

Inherited from:
ZLogger
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
final def map[B](f: (Option[Output]) => B): ZLogger[Message, B]

Attributes

Inherited from:
ZLogger

Attributes

Inherited from:
Product

Attributes

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

Attributes

Inherited from:
ZLogger