Documentation ¶
Index ¶
Constants ¶
View Source
const ( FormatCommon = `%h %l %u %t "%r" %>s %b` FormatCombined = `%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i"` )
Variables ¶
View Source
var ( // HeaderKeyOriginalRequestURI is a key to store original RequestURI. HeaderKeyOriginalRequestURI = []byte("Original-Request-URI") )
View Source
var (
NilAccessLog nilAccessLog
)
Functions ¶
This section is empty.
Types ¶
type AccessLog ¶
type AccessLog interface { logger.Rotator io.Closer // Collect collects informations before Log. Collect(ctx *fasthttp.RequestCtx) // Log writes access log. Log(ctx *fasthttp.RequestCtx) }
AccessLog is an interface to write access log.
Click to show internal directories.
Click to hide internal directories.