mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Renamed simple_file_sink -> basic_file_sink
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "includes.h"
|
||||
#include "spdlog/async.h"
|
||||
#include "spdlog/sinks/simple_file_sink.h"
|
||||
#include "spdlog/sinks/basic_file_sink.h"
|
||||
#include "test_sink.h"
|
||||
|
||||
TEST_CASE("basic async test ", "[async]")
|
||||
@@ -121,7 +121,7 @@ TEST_CASE("to_file", "[async]")
|
||||
size_t tp_threads = 1;
|
||||
std::string filename = "logs/async_test.log";
|
||||
{
|
||||
auto file_sink = std::make_shared<spdlog::sinks::simple_file_sink_mt>(filename, true);
|
||||
auto file_sink = std::make_shared<spdlog::sinks::basic_file_sink_mt>(filename, true);
|
||||
auto tp = std::make_shared<spdlog::details::thread_pool>(messages, tp_threads);
|
||||
auto logger = std::make_shared<spdlog::async_logger>("as", std::move(file_sink), std::move(tp));
|
||||
|
||||
@@ -143,7 +143,7 @@ TEST_CASE("to_file multi-workers", "[async]")
|
||||
size_t tp_threads = 10;
|
||||
std::string filename = "logs/async_test.log";
|
||||
{
|
||||
auto file_sink = std::make_shared<spdlog::sinks::simple_file_sink_mt>(filename, true);
|
||||
auto file_sink = std::make_shared<spdlog::sinks::basic_file_sink_mt>(filename, true);
|
||||
auto tp = std::make_shared<spdlog::details::thread_pool>(messages, tp_threads);
|
||||
auto logger = std::make_shared<spdlog::async_logger>("as", std::move(file_sink), std::move(tp));
|
||||
|
||||
|
Reference in New Issue
Block a user