github.com/caddyserver/caddy/v2/modules/caddyhttp/logging
No package summary is available.
Package
Files: 2. Third party imports: 1. Imports from organisation: 0. Tests: 0. Benchmarks: 0.
Vars
Interface guards
Types
LogAppend
LogAppend implements a middleware that takes a key and value, where the key is the name of a log field and the value is a placeholder, or variable key, or constant value to use for that field.
| Field name | Field type | Comment |
|---|---|---|
| Key |
|
Key is the name of the log field. |
| Value |
|
Value is the value to use for the log field.
If it is a placeholder (with surrounding |
Functions
func (*LogAppend) UnmarshalCaddyfile
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
func (LogAppend) CaddyModule
CaddyModule returns the Caddy module information.
func (LogAppend) ServeHTTP
Private functions
func init
func parseCaddyfile
parseCaddyfile sets up the log_append handler from Caddyfile tokens. Syntax:
log_append [<matcher>] <key> <value>