From 1ef9a7e4d5b3c5598484db268daf2d17ca5102a8 Mon Sep 17 00:00:00 2001 From: Topher Cyll Date: Sat, 9 Feb 2019 13:25:41 -0500 Subject: [PATCH] Add an example json-file log line to the documentation. --- config/containers/logging/json-file.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/containers/logging/json-file.md b/config/containers/logging/json-file.md index 6e397885f6..913f08d305 100644 --- a/config/containers/logging/json-file.md +++ b/config/containers/logging/json-file.md @@ -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`