docs: add replace log format directive, global log option (#147)

* caddyfile/directives/log: add docs for new replace directive

This commit corresponds with the functionality added in this PR:
https://github.com/caddyserver/caddy/pull/4029

* caddyfile: add documentation for new global log option

This corresponds with the changes in this PR:
https://github.com/caddyserver/caddy/pull/4028
This commit is contained in:
Aaron Taylor 2021-04-08 14:29:15 -04:00 committed by GitHub
parent f01036964f
commit bd9d8eaf71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View file

@ -165,6 +165,14 @@ Marks a field to be skipped from being encoded.
<field> delete
```
##### replace
Marks a field to be replaced with the provided string at encoding time.
```caddy-d
<field> replace <replacement>
```
##### ip_mask
Masks IP addresses in the field using a CIDR mask, i.e. the number of bytes from the IP to retain, starting from the left side. There is separate configuration for IPv4 and IPv6 addresses.