mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-27 07:14:12 +08:00
Update README.md
This commit is contained in:
parent
9cc731001b
commit
2277fdc80d
@ -149,7 +149,7 @@ void daily_example()
|
|||||||
void async_example()
|
void async_example()
|
||||||
{
|
{
|
||||||
// default thread pool settings can be modified *before* creating the async logger:
|
// default thread pool settings can be modified *before* creating the async logger:
|
||||||
// spdlog::init_thread_pool(32768, 1); // queue with max 32k items 1 backing thread.
|
// spdlog::init_thread_pool(32768, 1); // queue with 32k items and 1 backing thread.
|
||||||
auto async_file = spdlog::basic_logger_mt<spdlog::async_factory>("async_file_logger", "logs/async_log.txt");
|
auto async_file = spdlog::basic_logger_mt<spdlog::async_factory>("async_file_logger", "logs/async_log.txt");
|
||||||
// alternatively:
|
// alternatively:
|
||||||
// auto async_file = spdlog::create_async<spdlog::sinks::basic_file_sink_mt>("async_file_logger", "logs/async_log.txt");
|
// auto async_file = spdlog::create_async<spdlog::sinks::basic_file_sink_mt>("async_file_logger", "logs/async_log.txt");
|
||||||
|
Loading…
Reference in New Issue
Block a user