macro_rules! define_test_logger {
() => { ... };
}Expand description
Creates a test-specific TestLogger struct that can creates preconfigured logger instances.
This macro avoids direct slog_async and slog_term dependencies in library crates
by letting dependents add them as dev-dependencies only.
ยงMethods
TestLogger::stdout()- Logger that outputs to stdout.TestLogger::memory()- Logger that stores messages in memory for inspection. Returns(Logger, MemoryDrainForTestInspector)tuple
Requires: slog, slog_async, slog_term