logger

package
v0.0.0-...-b8ce741 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger defines a logger

func NewLogger

func NewLogger(logger log.Logger) *Logger

NewLogger takes a logger as a dependency and returns type Logger.

func (*Logger) TwirpLog

func (l *Logger) TwirpLog(ctx context.Context, message string, input, output interface{}, err error, took time.Duration) error

TwirpLog implemetents logging middleware

Jump to

Keyboard shortcuts

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