logging

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(output, level string, pretty bool, sentryDSN string) error

Configure logger level and output format

func Logger

func Logger(ctx context.Context) *zerolog.Logger

Logger returns the zerolog logger stored in the given context if any, nil otherwise.

func NewLogAdapter

func NewLogAdapter(logger zerolog.Logger) goa.LogAdapter

NewLogAdapter wraps a zerolog logger into a goa logger adapter.

func SentryWriter

func SentryWriter(dsn string) zerolog.LevelWriter

SentryWriter create Zerolog writer that send error level message to Sentry

Types

This section is empty.

Jump to

Keyboard shortcuts

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