logger

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequest

func LogRequest(logger Logger, req *http.Request, reqID string)

func LogRequestSensitive

func LogRequestSensitive(logger Logger, req *http.Request, reqID string, sensitiveContent []string)

func LogResponse

func LogResponse(logger Logger, resp *http.Response, start time.Time, reqID string)

func WriteLog

func WriteLog(logger Logger, format string, args ...interface{})

Types

type Logger

type Logger interface {
	Printf(format string, v ...interface{})
}

func GetDefaultLogger

func GetDefaultLogger(loggerPrefix string) Logger

func NewNopLogger

func NewNopLogger() Logger

Jump to

Keyboard shortcuts

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