logger

package
v0.0.0-...-4f50f5e Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *Config) *zap.Logger

New creates a new instance of the logger based on the config

func NewHandler

func NewHandler(log *zap.Logger) func(h http.Handler) http.Handler

NewHandler creates a new instance of Handler.

Types

type Config

type Config struct {
	Production bool
}

type Handler

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

Handler is a wrapper to store the logger

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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