Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro committed May 7, 2024
1 parent a9b6bac commit 88a2667
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/test/logs/logger_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ TEST(Logger, GetLoggerDefault)
auto lp = Provider::GetLoggerProvider();
const std::string schema_url{"https://opentelemetry.io/schemas/1.11.0"};
auto logger = lp->GetLogger("TestLogger", "opentelelemtry_library", "", schema_url);
auto name = logger->GetName();
EXPECT_NE(nullptr, logger);
auto name = logger->GetName();
auto record = logger->CreateLogRecord();
EXPECT_EQ(name, "noop logger");
EXPECT_NE(nullptr, record);
}

// Test the two additional overloads for GetLogger()
Expand Down

0 comments on commit 88a2667

Please sign in to comment.