replace default std::cout with macro INFO/WARN