log

package
v2.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: MIT Imports: 1 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 {
	*zap.SugaredLogger
}

Logger is an adapted zap logger

func New

func New(serviceName string, production bool) *Logger

New creates a new zap logger

func (*Logger) Log

func (logger *Logger) Log(keyvals ...interface{}) error

Log is called by the log middleware to log HTTP requests key values

Jump to

Keyboard shortcuts

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