| 43 | // This file just print some information using the logging macro. |
| 44 | |
| 45 | void 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 | |
| 56 | TEST(PrintLogTest, LogTestWithoutInit) { |
| 57 | // Without ArrowLog::StartArrowLog, this should also work. |