logtest

package
v1.6.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(tb testing.TB, override ...zapcore.Level) log.Log

New creates log.Log instance that will use testing.TB.Log internally.

func SetupGlobal

func SetupGlobal(tb testing.TB, overwrite ...zapcore.Level)

SetupGlobal updates AppLog to the instance of test-specific logger. Some tests do not terminate all goroutines when they exit, so we can't recover original for now.

func Zap

func Zap(tb testing.TB, override ...zapcore.Level) *zap.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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