logger

package
v0.0.0-...-495eea3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggerStackdriverMiddleware

func LoggerStackdriverMiddleware(logger *zap.Logger, config Config) func(http.Handler) http.Handler

Returns a middleware function for logging requests

func LoggerStandardMiddleware

func LoggerStandardMiddleware(logger *zap.Logger, config Config) func(http.Handler) http.Handler

Types

type Config

type Config struct {
	Level        zapcore.Level `conf:"level"`
	RequestBody  bool          `conf:"request_body"`
	ResponseBody bool          `conf:"response_body"`
	IgnorePaths  []string      `conf:"ignore_paths"`
}

Jump to

Keyboard shortcuts

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