mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-22 16:46:53 +01:00
logging: Add doc about which fields can't be filtered
This commit is contained in:
parent
dff78d82ce
commit
a6df4cdbbc
1 changed files with 5 additions and 0 deletions
|
@ -44,6 +44,11 @@ type FilterEncoder struct {
|
||||||
// layer of nesting with `>`. In other words, for an
|
// layer of nesting with `>`. In other words, for an
|
||||||
// object like `{"a":{"b":0}}`, the inner field can
|
// object like `{"a":{"b":0}}`, the inner field can
|
||||||
// be referenced as `a>b`.
|
// be referenced as `a>b`.
|
||||||
|
//
|
||||||
|
// The following fields are fundamental to the log and
|
||||||
|
// cannot be filtered because they are added by the
|
||||||
|
// underlying logging library as special cases: ts,
|
||||||
|
// level, logger, and msg.
|
||||||
FieldsRaw map[string]json.RawMessage `json:"fields,omitempty" caddy:"namespace=caddy.logging.encoders.filter inline_key=filter"`
|
FieldsRaw map[string]json.RawMessage `json:"fields,omitempty" caddy:"namespace=caddy.logging.encoders.filter inline_key=filter"`
|
||||||
|
|
||||||
wrapped zapcore.Encoder
|
wrapped zapcore.Encoder
|
||||||
|
|
Loading…
Reference in a new issue