logger

package
v3.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 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, otherHeaderParams map[string]string, body bool)

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