Structs

A mock appender useful for testing, which simply encodes its messages and adds them to a Vec<String>.

Functions

Call this at the start of a test to configure the logger. The returned mutex guard ensures no other tests can execute simultaneously; this is vital for correctness. Do not drop it until the end of the test.
A convenient wrapper for test_setup that configures the global logger with a fresh MockAppender. If not supplied, the level defaults to Trace, and the encoder to a PatternEncoder with the pattern {l} {t} {m}.

Type Definitions

A thread-safe handle to a list of log messages.