logger

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 6 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)

func LogResponse

func LogResponse(logger Logger, resp *http.Response)

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

Jump to

Keyboard shortcuts

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