From 03a09705ff03d9b5ad8a55edf1debf753fba04bd Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 7 Dec 2014 07:24:46 +0200 Subject: [PATCH] example --- example/example.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/example/example.cpp b/example/example.cpp index d07cf801..0cfa326f 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -73,9 +73,10 @@ int main(int, char* []) // // Asynchronous logging is easy.. - // Just call spdlog::set_async_mode(max_q_size) and all created loggers from now on will be asynchronous.. + // Just call spdlog::set_async_mode(q_size) and all created loggers from now on will be asynchronous.. + // Note: queue size must be power of 2! // - size_t max_q_size = 1048576; + size_t max_q_size = 1048576; spdlog::set_async_mode(max_q_size); auto async_file= spd::daily_logger_st("async_file_logger", "logs/async_log.txt"); async_file->info() << "This is async log.." << "Should be very fast!";