mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 12:36:16 -04:00
docs: fix the examples of the log format subdirective (#18)
This commit is contained in:
parent
e1057d795a
commit
6b16d4d4b8
1 changed files with 4 additions and 4 deletions
|
@ -115,7 +115,7 @@ In addition to the syntax for each individual encoder, these common properties c
|
||||||
The console encoder formats the log entry for human readability while preserving some structure.
|
The console encoder formats the log entry for human readability while preserving some structure.
|
||||||
|
|
||||||
```
|
```
|
||||||
output console
|
format console
|
||||||
```
|
```
|
||||||
|
|
||||||
#### json
|
#### json
|
||||||
|
@ -123,7 +123,7 @@ output console
|
||||||
Formats each log entry as a JSON object.
|
Formats each log entry as a JSON object.
|
||||||
|
|
||||||
```
|
```
|
||||||
output json
|
format json
|
||||||
```
|
```
|
||||||
|
|
||||||
#### logfmt
|
#### logfmt
|
||||||
|
@ -131,7 +131,7 @@ output json
|
||||||
Formats each log entry as [logfmt](https://brandur.org/logfmt).
|
Formats each log entry as [logfmt](https://brandur.org/logfmt).
|
||||||
|
|
||||||
```
|
```
|
||||||
output logfmt
|
format logfmt
|
||||||
```
|
```
|
||||||
|
|
||||||
#### single_field
|
#### single_field
|
||||||
|
@ -139,7 +139,7 @@ output logfmt
|
||||||
Writes only a single field from the structure log entry. Useful if one of the fields has all the information you need.
|
Writes only a single field from the structure log entry. Useful if one of the fields has all the information you need.
|
||||||
|
|
||||||
```
|
```
|
||||||
output single_field <field_name>
|
format single_field <field_name>
|
||||||
```
|
```
|
||||||
|
|
||||||
- **<field_name>** is the name of the field whose value to use as the log entry.
|
- **<field_name>** is the name of the field whose value to use as the log entry.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue