logger

package
v0.0.0-...-2b68197 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(ctx context.Context) (zerolog.Logger, context.Context)

NewLogger instantiates a new logger (console writer for now).

func NewLoggerForHTTPHandler

func NewLoggerForHTTPHandler(ctx context.Context, handler http.Handler) http.Handler

func NewTestLogger

func NewTestLogger(t testing.TB, ctx context.Context) (zerolog.Logger, context.Context)

NewTestLogger insatiates a new logger that uses testing.T as a backend.

Types

This section is empty.

Jump to

Keyboard shortcuts

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