#B Log now takes Format which implicitly adds source location information
| 24 | // #B Log now takes Format which implicitly adds source location |
| 25 | // information |
| 26 | void Log(LogLevel level, Format fmt, const auto&... args) |
| 27 | { |
| 28 | std::clog << std::format("{}:{}:{}: ", |
| 29 | static_cast<unsigned int>(level), |
| 30 | fmt.loc.function_name(), |
| 31 | fmt.loc.line()) |
| 32 | << std::vformat(fmt.fmt, |
| 33 | std::make_format_args(args...)) |
| 34 | << '\n'; |
| 35 | } |
| 36 | |
| 37 | int main() |
| 38 | { |