docs: fix the examples of the log format subdirective (#18)

This commit is contained in:
Mohammed Al Sahaf 2020-04-05 01:13:48 +03:00 committed by GitHub
parent e1057d795a
commit 6b16d4d4b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>
``` ```
- **&lt;field_name&gt;** is the name of the field whose value to use as the log entry. - **&lt;field_name&gt;** is the name of the field whose value to use as the log entry.