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 ( // UserKeyOriginalRequestURI is a key to store original RequestURI. UserKeyOriginalRequestURI = []byte("Original-Request-URI") // UserKeyUsername is a key to store username. UserKeyUsername = []byte("Username") )
View Source
var (
NilAccessLog nilAccessLog
)
Functions ¶
This section is empty.
Types ¶
type AccessLog ¶
type AccessLog interface {
// Collect collects informations before Log.
Collect(ctx *fasthttp.RequestCtx)
// Log writes access log.
Log(ctx *fasthttp.RequestCtx)
// Close closes access log.
Close() error
}
AccessLog is an interface to write access log.
Click to show internal directories.
Click to hide internal directories.