Documentation
¶
Index ¶
Constants ¶
View Source
const ( RemoteAddr = "remote_addr" RemoteUser = "remote_user" Time = "time_local" Request = "request" Status = "status" BodyBytesSent = "body_bytes_sent" Referer = "http_referer" UserAgent = "http_user_agent" )
View Source
const (
DefaultFormat string = `$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"`
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogLine ¶
type LogLine struct { RemoteAddr string `json:"remote_addr"` RemoteUser string `json:"remote_user"` Status int `json:"status"` BodyBytesSent int `json:"body_bytes_sent"` Referer string `json:"referer"` UserAgent string `json:"user_agent"` Browser string `json:"browser"` OS string `json:"os"` Device string `json:"device"` Time time.Time `json:"datetime"` Path string `json:"path"` Method string `json:"method"` HttpVersion string `jon:"http_version"` IsBotVerdict string `json:"is_bot_verdict"` }
func NewDefaultFormat ¶
Click to show internal directories.
Click to hide internal directories.