|
|
@@ -29,13 +29,13 @@ std::string const formatted_output = R"({
|
|
|
"epochSecond" : 1554401840,
|
|
|
"nanoOfSecond" : 123456000
|
|
|
},
|
|
|
- "level" : "warning",
|
|
|
+ "level" : "WARNING",
|
|
|
"loggerName" : "UnitTest",
|
|
|
"message" : "This is a test message"
|
|
|
})";
|
|
|
|
|
|
std::string const compact_output = "{\"instant\":{\"epochSecond\":"
|
|
|
- "1554401840,\"nanoOfSecond\":123456000},\"level\":\"warning\","
|
|
|
+ "1554401840,\"nanoOfSecond\":123456000},\"level\":\"WARNING\","
|
|
|
"\"loggerName\":\"UnitTest\",\"message\":\"This is a test message\"}";
|
|
|
|
|
|
TEST(JsonLayoutTest, LogsInformationInJSON) {
|
|
|
@@ -89,7 +89,7 @@ std::string const struct_output = R"({
|
|
|
"epochSecond" : 1554401840,
|
|
|
"nanoOfSecond" : 123456000
|
|
|
},
|
|
|
- "level" : "warning",
|
|
|
+ "level" : "WARNING",
|
|
|
"loggerName" : "UnitTest",
|
|
|
"message" : "{225}"
|
|
|
})";
|
|
|
@@ -106,7 +106,7 @@ std::string const struct_json_output = R"({
|
|
|
"epochSecond" : 1554401840,
|
|
|
"nanoOfSecond" : 123456000
|
|
|
},
|
|
|
- "level" : "warning",
|
|
|
+ "level" : "WARNING",
|
|
|
"loggerName" : "UnitTest",
|
|
|
"message" : {
|
|
|
"content" : 225
|