logtest

package
v1.3.0-increased-cache... Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 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