Help us shape the future of Go! Take the 2026 Go Developer Survey

log

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 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