mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
pattern per sink and pattern caching
This commit is contained in:
@@ -11,9 +11,9 @@ static const std::string target_filename = "logs/file_helper_test.txt";
|
||||
static void write_with_helper(file_helper &helper, size_t howmany)
|
||||
{
|
||||
log_msg msg;
|
||||
|
||||
fmt::format_to(msg.formatted, "{}", std::string(howmany, '1'));
|
||||
helper.write(msg);
|
||||
fmt::memory_buffer formatted;
|
||||
fmt::format_to(formatted, "{}", std::string(howmany, '1'));
|
||||
helper.write(formatted);
|
||||
helper.flush();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user