summaryrefslogtreecommitdiff
path: root/src/mongo/db/server_options.h
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2020-02-11 14:29:17 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-13 21:14:48 +0000
commit1de33fe9efad7ebc9a40c515131fc33b8e284c6a (patch)
treee42bf6f50a0c56d5292a31682d88e99346edd51e /src/mongo/db/server_options.h
parent9aa9fa4a2844f0fe7890e01d621960a0c64607f6 (diff)
downloadmongo-1de33fe9efad7ebc9a40c515131fc33b8e284c6a.tar.gz
SERVER-42722 Implement --timeStampFormat in logv2.
Removed option for ctime as it is not allowed in Extended JSON.
Diffstat (limited to 'src/mongo/db/server_options.h')
-rw-r--r--src/mongo/db/server_options.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/server_options.h b/src/mongo/db/server_options.h
index 076f8decb87..12913018092 100644
--- a/src/mongo/db/server_options.h
+++ b/src/mongo/db/server_options.h
@@ -99,6 +99,8 @@ struct ServerGlobalParams {
std::string logpath; // Path to log file, if logging to a file; otherwise, empty.
logv2::LogFormat logFormat = logv2::LogFormat::kDefault; // Log format to output to
+ logv2::LogTimestampFormat logTimestampFormat = logv2::LogTimestampFormat::kISO8601Local;
+
bool logAppend = false; // True if logging to a file in append mode.
bool logRenameOnRotate = true; // True if logging should rename log files on rotate
bool logWithSyslog = false; // True if logging to syslog; must not be set if logpath is set.