resty_logger

package
v2.4.7 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugLogFormatterFunc

func DebugLogFormatterFunc() func(dl *resty.DebugLog) string

func JsonHideImportantData

func JsonHideImportantData(input []byte, keys ...string) []byte

Types

type LoggerFields added in v2.4.0

type LoggerFields struct {
	Request  LoggerFieldsRequest  `json:"request"`
	Response LoggerFieldsResponse `json:"response"`
}

type LoggerFieldsRequest added in v2.4.0

type LoggerFieldsRequest struct {
	Method string `json:"method"`
	URL    string `json:"url"`
	Body   string `json:"body"`
}

type LoggerFieldsResponse added in v2.4.0

type LoggerFieldsResponse struct {
	StatusCode string `json:"status_code"`
	Duration   string `json:"duration"`
	Body       string `json:"body"`
}

type RestyLogger

type RestyLogger struct {
	LoggerID string
}

func (*RestyLogger) Debugf

func (l *RestyLogger) Debugf(format string, v ...any)

func (*RestyLogger) Errorf

func (l *RestyLogger) Errorf(format string, v ...any)

func (*RestyLogger) Warnf

func (l *RestyLogger) Warnf(format string, v ...any)

Jump to

Keyboard shortcuts

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