logtest

package
v0.2.10-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 5 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, overvwrite ...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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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