From 1d65339002022a5eb9d742e0a0b0040a8ab978b3 Mon Sep 17 00:00:00 2001 From: Simran Date: Thu, 21 Mar 2019 16:30:05 +0100 Subject: [PATCH] Doc - setIntroducedIn for log.file-group/mode (#8487) * Add introducedIn version information * Update program option dumps --- Documentation/Examples/arangobench.json | 10 ++++++++-- Documentation/Examples/arangod.json | 10 ++++++++-- Documentation/Examples/arangodump.json | 10 ++++++++-- Documentation/Examples/arangoexport.json | 10 ++++++++-- Documentation/Examples/arangoimport.json | 10 ++++++++-- Documentation/Examples/arangoinspect.json | 10 ++++++++-- Documentation/Examples/arangorestore.json | 10 ++++++++-- Documentation/Examples/arangosh.json | 10 ++++++++-- lib/Logger/LoggerFeature.cpp | 8 ++++++-- 9 files changed, 70 insertions(+), 18 deletions(-) diff --git a/Documentation/Examples/arangobench.json b/Documentation/Examples/arangobench.json index 855479944f..23404e0b7c 100644 --- a/Documentation/Examples/arangobench.json +++ b/Documentation/Examples/arangobench.json @@ -262,7 +262,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", @@ -276,7 +279,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", diff --git a/Documentation/Examples/arangod.json b/Documentation/Examples/arangod.json index 4519e028d5..ee75012c75 100644 --- a/Documentation/Examples/arangod.json +++ b/Documentation/Examples/arangod.json @@ -1815,7 +1815,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", @@ -1829,7 +1832,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", diff --git a/Documentation/Examples/arangodump.json b/Documentation/Examples/arangodump.json index ebb3bbf07a..60e6ee2fae 100644 --- a/Documentation/Examples/arangodump.json +++ b/Documentation/Examples/arangodump.json @@ -277,7 +277,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", @@ -291,7 +294,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", diff --git a/Documentation/Examples/arangoexport.json b/Documentation/Examples/arangoexport.json index ac28996687..f1ee075175 100644 --- a/Documentation/Examples/arangoexport.json +++ b/Documentation/Examples/arangoexport.json @@ -193,7 +193,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", @@ -207,7 +210,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", diff --git a/Documentation/Examples/arangoimport.json b/Documentation/Examples/arangoimport.json index f8e04614ce..0371357efc 100644 --- a/Documentation/Examples/arangoimport.json +++ b/Documentation/Examples/arangoimport.json @@ -305,7 +305,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", @@ -319,7 +322,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", diff --git a/Documentation/Examples/arangoinspect.json b/Documentation/Examples/arangoinspect.json index 0fb4c3ce97..17e17c93d3 100644 --- a/Documentation/Examples/arangoinspect.json +++ b/Documentation/Examples/arangoinspect.json @@ -496,7 +496,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", @@ -510,7 +513,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", diff --git a/Documentation/Examples/arangorestore.json b/Documentation/Examples/arangorestore.json index 5b183fba4b..69cff085e3 100644 --- a/Documentation/Examples/arangorestore.json +++ b/Documentation/Examples/arangorestore.json @@ -370,7 +370,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", @@ -384,7 +387,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", diff --git a/Documentation/Examples/arangosh.json b/Documentation/Examples/arangosh.json index 11261924b0..7ac2de9c58 100644 --- a/Documentation/Examples/arangosh.json +++ b/Documentation/Examples/arangosh.json @@ -497,7 +497,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", @@ -511,7 +514,10 @@ "dynamic" : false, "enterpriseOnly" : false, "hidden" : false, - "introducedIn" : null, + "introducedIn" : [ + "v3.4.5", + "v3.5.0" + ], "obsolete" : false, "requiresValue" : true, "section" : "log", diff --git a/lib/Logger/LoggerFeature.cpp b/lib/Logger/LoggerFeature.cpp index 83b3807e1c..f083d82dd1 100644 --- a/lib/Logger/LoggerFeature.cpp +++ b/lib/Logger/LoggerFeature.cpp @@ -93,12 +93,16 @@ void LoggerFeature::collectOptions(std::shared_ptr options) { options->addOption("--log.file-mode", "mode to use for new log file, umask will be applied as well", - new StringParameter(&_fileMode)); + new StringParameter(&_fileMode)) + .setIntroducedIn(30405) + .setIntroducedIn(30500); #ifdef ARANGODB_HAVE_SETGID options->addOption("--log.file-group", "group to use for new log file, user must be a member of this group", - new StringParameter(&_fileGroup)); + new StringParameter(&_fileGroup)) + .setIntroducedIn(30405) + .setIntroducedIn(30500); #endif options->addOption("--log.prefix", "prefix log message with this string",