log

package
v0.0.0-...-9a1563a Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(l *zap.SugaredLogger) func(next http.Handler) http.Handler

func New

func New(cfg *Config) *zap.SugaredLogger

Types

type Config

type Config struct {
	Level       zap.AtomicLevel `yaml:"level"`
	Development bool            `yaml:"development"`
	StdoutPaths []string        `yaml:"stdout_paths"`
	StderrPaths []string        `yaml:"stderr_paths"`
}

Jump to

Keyboard shortcuts

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