MCPcopy Create free account
hub / github.com/apache/arrow / PrintLog

Function PrintLog

cpp/src/arrow/util/logging_test.cc:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43// This file just print some information using the logging macro.
44
45void PrintLog() {
46 ARROW_LOG(DEBUG) << "This is the" << " DEBUG" << " message";
47 ARROW_LOG(INFO) << "This is the" << " INFO message";
48 ARROW_LOG(WARNING) << "This is the" << " WARNING message";
49 ARROW_LOG(ERROR) << "This is the" << " ERROR message";
50 ARROW_CHECK(true) << "This is a ARROW_CHECK" << " message but it won't show up";
51 // The following 2 lines should not run since it will cause program failure.
52 // ARROW_LOG(FATAL) << "This is the FATAL message";
53 // ARROW_CHECK(false) << "This is a ARROW_CHECK message but it won't show up";
54}
55
56TEST(PrintLogTest, LogTestWithoutInit) {
57 // Without ArrowLog::StartArrowLog, this should also work.

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected