mirror of https://github.com/docker/docs.git
Add an example json-file log line to the documentation.
This commit is contained in:
parent
da4ef309a3
commit
1ef9a7e4d5
|
|
@ -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
|
origin (`stdout` or `stderr`) and its timestamp. Each log file contains information about
|
||||||
only one container.
|
only one container.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{"log":"Log line is here\n","stream":"stdout","time":"2019-01-01T11:11:11.111111111Z"}
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
To use the `json-file` driver as the default logging driver, set the `log-driver`
|
To use the `json-file` driver as the default logging driver, set the `log-driver`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue