mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Update test_backtrace.cpp
This commit is contained in:
parent
c97c025adb
commit
f4d3616c4b
@ -7,7 +7,7 @@ TEST_CASE("bactrace1", "[bactrace]")
|
|||||||
|
|
||||||
using spdlog::sinks::test_sink_st;
|
using spdlog::sinks::test_sink_st;
|
||||||
auto test_sink = std::make_shared<test_sink_st>();
|
auto test_sink = std::make_shared<test_sink_st>();
|
||||||
int backtrace_size = 5;
|
size_t backtrace_size = 5;
|
||||||
|
|
||||||
spdlog::logger logger("test-backtrace", test_sink);
|
spdlog::logger logger("test-backtrace", test_sink);
|
||||||
logger.set_pattern("%v");
|
logger.set_pattern("%v");
|
||||||
@ -37,7 +37,7 @@ TEST_CASE("bactrace-async", "[bactrace]")
|
|||||||
auto test_sink = std::make_shared<test_sink_mt>();
|
auto test_sink = std::make_shared<test_sink_mt>();
|
||||||
using spdlog::details::os::sleep_for_millis;
|
using spdlog::details::os::sleep_for_millis;
|
||||||
|
|
||||||
int backtrace_size = 5;
|
size_t backtrace_size = 5;
|
||||||
|
|
||||||
spdlog::init_thread_pool(120, 1);
|
spdlog::init_thread_pool(120, 1);
|
||||||
auto logger = std::make_shared<spdlog::async_logger>("test-bactrace-async", test_sink, spdlog::thread_pool());
|
auto logger = std::make_shared<spdlog::async_logger>("test-bactrace-async", test_sink, spdlog::thread_pool());
|
||||||
|
Loading…
Reference in New Issue
Block a user