logging

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvironmentTestLogger

func EnvironmentTestLogger(t zaptest.TestingT) environment.EnvOpts

EnvironmentTestLogger setups the test logger for environment test.

func JSON

func JSON(name string, o interface{}) zap.Field

JSON returns a zap.Field that dumps an object as JSON.

func NewContext

func NewContext() context.Context

NewContext creates a new context.Context with development logger, and based on OS signals. It should be used only in TestMain() functions.

func WithTestLogger

func WithTestLogger(ctx context.Context, t zaptest.TestingT) context.Context

WithTestLogger adds a test logger to given context.Context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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