logging

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 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(level string, pretty bool, sentryDSN *string)

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