Updated formatter-bench to include source location
This commit is contained in:
parent
3a8f9484d2
commit
216cd6935f
@ -28,7 +28,7 @@ void bench_formatter(benchmark::State &state, std::string pattern)
|
||||
std::string logger_name = "logger-name";
|
||||
const char *text = "Hello. This is some message with length of 80 ";
|
||||
|
||||
spdlog::details::log_msg msg(&logger_name, spdlog::level::info, text);
|
||||
spdlog::details::log_msg msg(spdlog::source_loc{__FILE__, __LINE__}, &logger_name, spdlog::level::info, text);
|
||||
// formatter->format(msg, dest);
|
||||
// printf("%s\n", fmt::to_string(dest).c_str());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user