Updated v2: Documentation (markdown)

Matt Holt 2019-10-29 11:59:45 -06:00
parent f58ec0af6c
commit 2d41b9a3a8

@ -980,7 +980,7 @@ In addition to the properties specific to each encoder, these properties are ava
"line_ending": "\n", "line_ending": "\n",
"time_format": "unix_seconds_float", "time_format": "unix_seconds_float",
"duration_format": "seconds", "duration_format": "seconds",
"level_format": "lower" "level_format": "color"
} }
``` ```
@ -993,7 +993,7 @@ In addition to the properties specific to each encoder, these properties are ava
- `line_ending`: The line ending to use. - `line_ending`: The line ending to use.
- `time_format`: The format to use for timestamps. Can be: "unix_seconds_float", "unix_milli_float", "unix_nano", "iso8601", "rfc3339", "rfc3339_nano", "wall", "wall_milli", "wall_nano", or [any time format value accepted by Go's time package](https://golang.org/pkg/time/#pkg-constants). - `time_format`: The format to use for timestamps. Can be: "unix_seconds_float", "unix_milli_float", "unix_nano", "iso8601", "rfc3339", "rfc3339_nano", "wall", "wall_milli", "wall_nano", or [any time format value accepted by Go's time package](https://golang.org/pkg/time/#pkg-constants).
- `duration_format`: The format to use for duration values. Can be "seconds", "nano", or "string". - `duration_format`: The format to use for duration values. Can be "seconds", "nano", or "string".
- `level_format`: The format to use for the log level. Can be "lower", "upper", or "color" (only recommended for the console encoder). - `level_format`: The format to use for the log level. Can be "lower", "upper", or "color" (useful with console encoder).
#### caddy.logging.encoders.console #### caddy.logging.encoders.console
@ -1186,7 +1186,7 @@ Listener addresses have the following form:
The network name is anything that [Go's `net` package](https://golang.org/pkg/net) recognizes, and is optional. The default network is `tcp`. If a network is specified, a single forward slash `/` is used to separate the network and the address. The network name is anything that [Go's `net` package](https://golang.org/pkg/net) recognizes, and is optional. The default network is `tcp`. If a network is specified, a single forward slash `/` is used to separate the network and the address.
The address portion may any of these forms: The address portion may be any of these forms:
- `host` - `host`
- `host:port` - `host:port`