mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-31 15:08:42 -04:00
Updated v2: Documentation (markdown)
parent
f58ec0af6c
commit
2d41b9a3a8
@ -980,7 +980,7 @@ In addition to the properties specific to each encoder, these properties are ava
|
||||
"line_ending": "\n",
|
||||
"time_format": "unix_seconds_float",
|
||||
"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.
|
||||
- `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".
|
||||
- `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
|
||||
|
||||
@ -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 address portion may any of these forms:
|
||||
The address portion may be any of these forms:
|
||||
|
||||
- `host`
|
||||
- `host:port`
|
||||
|
Loading…
x
Reference in New Issue
Block a user