Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sprint ¶
func Sprint(req *http.Request, remoteAddr string, t time.Time, statusCode int, contentLength int64) string
Sprint with iris.Context and time. ref: https://en.wikipedia.org/wiki/Common_Log_Format - Parameters:
- req: HTTP reqeust
- remoteAddr: Requester address (or client address), e.g. iris.Context#RemoteAddr()
- t: Time on responsing, e.g. time.Now()
- statusCode: Response status code
- contentLength: Response content length, e.g. convert ResponseWriter#.Header().Get("Content-Length") to int64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.