Documentation ¶
Index ¶
- func LogRequest(logger Logger, req *http.Request, reqID string, ...)
- func LogRequestSensitive(logger Logger, req *http.Request, reqID string, sensitiveContent []string)
- func LogResponse(logger Logger, resp *http.Response, start time.Time, reqID string)
- func WriteLog(logger Logger, format string, args ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogRequest ¶
func LogRequestSensitive ¶
func LogResponse ¶
Types ¶
type Logger ¶
type Logger interface {
Printf(format string, v ...interface{})
}
func GetDefaultLogger ¶
func NewNopLogger ¶
func NewNopLogger() Logger
Click to show internal directories.
Click to hide internal directories.