diff options
author | Matthew Holt <[email protected]> | 2020-01-01 13:56:27 -0700 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2020-01-03 15:28:05 -0700 |
commit | a6df4cdbbca673bf3a2ff1bc2369a887c6953b93 (patch) | |
tree | 0a8bc2ee7de8e3558b4494b2e0242af23da01840 /modules/logging | |
parent | dff78d82ce21d97cad53171b72b88550e02c2c7f (diff) | |
download | caddy-a6df4cdbbca673bf3a2ff1bc2369a887c6953b93.tar.gz caddy-a6df4cdbbca673bf3a2ff1bc2369a887c6953b93.zip |
logging: Add doc about which fields can't be filtered
Diffstat (limited to 'modules/logging')
-rw-r--r-- | modules/logging/filterencoder.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/logging/filterencoder.go b/modules/logging/filterencoder.go index 36823fa5a..7a8108caa 100644 --- a/modules/logging/filterencoder.go +++ b/modules/logging/filterencoder.go @@ -44,6 +44,11 @@ type FilterEncoder struct { // layer of nesting with `>`. In other words, for an // object like `{"a":{"b":0}}`, the inner field can // 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"` wrapped zapcore.Encoder |