Documentation
¶
Overview ¶
Package accesslog records bounded, classified HTTP events to server-owned files.
Index ¶
Constants ¶
const MiB int64 = 1 << 20
Variables ¶
This section is empty.
Functions ¶
func LogicalBytes ¶
LogicalBytes marks gzip input; the outer compressed write must not count twice.
func NormalizeProxies ¶
NormalizeProxies preserves the legacy scheme policy; this set is address-only.
func RequestPanic ¶
RequestPanic couples a handled MCP panic to the eventual access event. When logging is off the existing diagnostic boundary remains independently active.
Types ¶
type Config ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) Close ¶
Close never closes the producer channel and never waits beyond the shared file/stderr drain deadline. A stuck OS write can outlive this deadline.
type Record ¶
type Record struct {
Type string `json:"type"`
Time string `json:"time,omitempty"`
Method string `json:"method,omitempty"`
Route string `json:"route,omitempty"`
PathLen *int `json:"path_len,omitempty"`
Status int `json:"status"`
DurationMS int64 `json:"duration_ms"`
Bytes int64 `json:"bytes"`
Client string `json:"client,omitempty"`
ClientSource string `json:"client_source,omitempty"`
Peer string `json:"peer,omitempty"`
TLS bool `json:"tls"`
ForwardedIgnored bool `json:"forwarded_ignored,omitempty"`
Aborted bool `json:"aborted,omitempty"`
Panic bool `json:"panic,omitempty"`
ProcessStartedAt string `json:"process_started_at"`
Counters
// contains filtered or unexported fields
}