void test_log(Log &log, int count) { # ifdef LINKO_LOG_MT // b::thread::id id = b::this_thread::get_id(); const int id = thread_id(); # else const int id = 0; # endif log.A() << id << " Test starting..." << std::endl; for (int i = 0; i < count; ++i) { log.I() << id << " Info " << i << '\n'; log.W() << id << " Warn " << i << std::endl; log.E() << id << " Err " << i << std::endl; log.D() << id << " Debug " << i << "\n"; } log.A() << id << " ...test finished" << std::endl; }