testlogger

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: Unlicense Imports: 3 Imported by: 0

Documentation

Overview

Package testlogger wires a zerolog.Logger into testing.T/B so that production code's own log lines (session lifecycle, verification, migrations, etc.) show up correctly attributed to the (sub)test that triggered them -- hidden on pass, surfaced automatically on failure or with `go test -v` -- instead of being silenced or dumped raw to stdout.

This package is exported (not under internal/) so consumers of this SDK can inject the same t.Log-routed logger into their own tests via relay.WithLogger / relay.WithEventStoreLogger, not just nmilat's own test suite.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t testing.TB) zerolog.Logger

New returns a zerolog.Logger that routes every log line through t.Log, formatted as human-readable console output rather than raw JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL