Merge pull request #8207 from toph/log-json-file-example-format

Add an example json-file log line to the documentation.
This commit is contained in:
L-Hudson
2019-02-25 08:46:46 -05:00
committed by GitHub

View File

@@ -13,6 +13,10 @@ and writes them in files using the JSON format. The JSON format annotates each l
origin (`stdout` or `stderr`) and its timestamp. Each log file contains information about
only one container.
```json
{"log":"Log line is here\n","stream":"stdout","time":"2019-01-01T11:11:11.111111111Z"}
```
## Usage
To use the `json-file` driver as the default logging driver, set the `log-driver`