← ZIO Logging docs

MetricLogger

zio.logging.MetricLogger
final case class MetricLogger(counter: Counter[Long], logLevelLabel: String) extends ZLogger[String, Unit]

Attributes

Source
MetricLogger.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ZLogger[String, Unit]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

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

Attributes

Definition Classes
Source
MetricLogger.scala

Inherited methods

def ++[M <: String, O](that: ZLogger[M, O])(implicit zippable: Zippable[Unit, 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 <: String, O](that: ZLogger[M, O]): ZLogger[M, O]

Attributes

Inherited from:
ZLogger
Source
ZLogger.scala
def <+[M <: String](that: ZLogger[M, Any]): ZLogger[M, Unit]

Attributes

Inherited from:
ZLogger
Source
ZLogger.scala

Attributes

Inherited from:
ZLogger
Source
ZLogger.scala

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: Unit => B): ZLogger[String, 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: => String): Unit

Attributes

Inherited from:
ZLogger
Source
ZLogger.scala