Documentation ¶ Index ¶ func LogRequest(logger Logger, req *http.Request, reqID string) func LogResponse(logger Logger, resp *http.Response, start time.Time, reqID string) func WriteLog(logger Logger, format string, args ...interface{}) type Logger func GetDefaultLogger(loggerPrefix string) Logger Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func LogRequest ¶ func LogRequest(logger Logger, req *http.Request, reqID 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 Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.