From e9a9015e38fc0996a3dae61393885414b092103f Mon Sep 17 00:00:00 2001 From: Steven Erenst Date: Mon, 19 Sep 2016 09:40:42 -0700 Subject: [PATCH] Fix regex for the json-file logger opts in overview.md The regex used to describe the max-file and max-size logging options for the json-file logger were incorrect. The regexes would only match a single character (a digit or a literal +). Instead the regexes should match 1 or more digits. The character class for the units of the max-size also included a pipe which meant that the regex would match 1| instead of only matching 1m, 1k, and 1g. Signed-off-by: Steven Erenst --- docs/admin/logging/overview.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/admin/logging/overview.md b/docs/admin/logging/overview.md index 4c4c16304a..4688709b99 100644 --- a/docs/admin/logging/overview.md +++ b/docs/admin/logging/overview.md @@ -71,8 +71,8 @@ This adds additional fields to the log depending on the driver, e.g. for The following logging options are supported for the `json-file` logging driver: ```bash ---log-opt max-size=[0-9+][k|m|g] ---log-opt max-file=[0-9+] +--log-opt max-size=[0-9]+[kmg] +--log-opt max-file=[0-9]+ --log-opt labels=label1,label2 --log-opt env=env1,env2 ```