| 47 | |
| 48 | template <class... Args> |
| 49 | void logs(Args&&... args) { |
| 50 | auto buf = fmt::memory_buffer{}; |
| 51 | fmt::format_to(std::back_inserter(buf), "[SERVER] "); |
| 52 | fmt::format_to(std::back_inserter(buf), std::forward<Args>(args)...); |
| 53 | fmt::print(outp, "{}\n", std::string_view(buf.data(), buf.size())); |
| 54 | } |
| 55 | |
| 56 | using namespace boost::asio; |
| 57 | using ip::tcp; |
no test coverage detected