/***********************************************************************//** * @brief Test C logger **************************************************************************/ void TestGApplication::test_C_logger(void) { // Test GLog log; log.date(true); log.name("Test"); log.open("test_GApplication.log"); log("%s", "8. This is a C++ string"); log("%s %d", "9. This is an integer:", int(1)); log("%s %f", "10. This is a single precision:", float(1.23456789)); log("%s %f", "11. This is a double precision:", double(1.23456789)); // Return return; }
/***********************************************************************//** * @brief Test stream logger **************************************************************************/ void TestGApplication::test_stream_logger(void) { // Test GLog log; log.date(true); log.name("Test"); log.open("test_GApplication.log", true); log << "1. This is a C++ string" << std::endl; log << "2. This is an integer: " << int(1) << std::endl; log << "3. This is a single precision: " << float(1.23456789) << std::endl; log << "4. This is a double precision: " << double(1.23456789) << std::endl; log << "5. This is a character: " << 'a' << std::endl; log << "6. This is a C string: " << "a" << std::endl; log << "7. This is a Boolean: " << true << std::endl; // Return return; }