autolog

package
v0.0.0-...-feb7e18 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogLevelOff = 100
)

Variables

This section is empty.

Functions

func EnableTestLogger

func EnableTestLogger(t *testing.T) func()

EnableTestLogger is used to replace the current logger with one that writes to the one from the testing package when running Go tests.

func RestoreGlobals

func RestoreGlobals()

RestoreGlobals restores the default logger ans sugared logger for Uber's zap.

func SetLevel

func SetLevel(level zapcore.Level)

SetLevel sets the level of the logger globally.

func ToJSON

func ToJSON(v interface{}, pretty bool) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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