summaryrefslogtreecommitdiff
path: root/src/mongo/logv2
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2020-03-25 17:04:16 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-02 02:05:48 +0000
commitd2789d7e75be524212b8b6ab213577c69632fbfd (patch)
tree81f654f8d5593d2e1e905301411711149ca54650 /src/mongo/logv2
parentcad10292bbd4f8e237c5ba85ec9265c21eddec38 (diff)
downloadmongo-d2789d7e75be524212b8b6ab213577c69632fbfd.tar.gz
SERVER-46801 Convert unittest library to structured logs.
Add logv2::LogComponent::kTest
Diffstat (limited to 'src/mongo/logv2')
-rw-r--r--src/mongo/logv2/log_component.cpp4
-rw-r--r--src/mongo/logv2/log_component.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/logv2/log_component.cpp b/src/mongo/logv2/log_component.cpp
index 697b6ec0eeb..d7122f4f082 100644
--- a/src/mongo/logv2/log_component.cpp
+++ b/src/mongo/logv2/log_component.cpp
@@ -148,6 +148,8 @@ StringData LogComponent::toStringData() const {
return "transaction"_sd;
case kConnectionPool:
return "connectionPool"_sd;
+ case kTest:
+ return "test"_sd;
case kNumLogComponents:
return "total"_sd;
case kAutomaticDetermination:
@@ -241,6 +243,8 @@ StringData LogComponent::getNameForLog() const {
return "TXN"_sd;
case kConnectionPool:
return "CONNPOOL"_sd;
+ case kTest:
+ return "TEST"_sd;
case kNumLogComponents:
return "TOTAL"_sd;
case kAutomaticDetermination:
diff --git a/src/mongo/logv2/log_component.h b/src/mongo/logv2/log_component.h
index 434aeff992f..f9a2a7345c7 100644
--- a/src/mongo/logv2/log_component.h
+++ b/src/mongo/logv2/log_component.h
@@ -74,6 +74,7 @@ public:
kTracking,
kTransaction,
kConnectionPool,
+ kTest,
kNumLogComponents
};