logging

package
v0.0.0-...-68c1abf Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) *zap.Logger

FromContext retrieves the logger from the context. If there is no logger on the context, it will return a valid no-op logger.

func Initialize

func Initialize(c env.Config) *zap.Logger

Initialize creates a new JSON zap logger.

func WithLogger

func WithLogger(ctx context.Context, l *zap.Logger) context.Context

WithLogger adds the logger to the request context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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