sealed
trait
ZTestLogger[-Message, +Output] extends ZLogger[Message, Output]
Abstract Value Members
-
abstract
def
apply(trace: Trace, fiberId: FiberId, logLevel: LogLevel, message: () ⇒ Message, cause: Cause[Any], context: FiberRefs, spans: List[LogSpan], annotations: Map[String, String]): Output
-
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
++[M <: Message, O](that: ZLogger[M, O])(implicit zippable: Zippable[Output, O]): ZLogger[M, Out]
-
def
+>[M <: Message, O](that: ZLogger[M, O]): ZLogger[M, O]
-
def
<+[M <: Message](that: ZLogger[M, Any]): ZLogger[M, Output]
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
contramap[Message1](f: (Message1) ⇒ Message): ZLogger[Message1, Output]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
map[B](f: (Output) ⇒ B): ZLogger[Message, B]
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
final
def
test(input: ⇒ Message): Output
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from ZLogger[Message, Output]
Inherited from AnyRef
Inherited from Any
A
ZTestLogger
is an implementation of aZLogger
that writes all log messages to an internal data structure. The contents of this data structure can be accessed using thelogOutput
operator. This makes it easy to write tests to verify that expected messages are being logged.