Commit 1899e6c4 authored by Gabi Melman's avatar Gabi Melman

Update README.md

parent c615ac32
...@@ -91,8 +91,8 @@ int main(int, char* []) ...@@ -91,8 +91,8 @@ int main(int, char* [])
// Asynchronous logging is easy.. // 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(max_q_size) and all created loggers from now on will be asynchronous..
// //
size_t max_q_size = 1048576; size_t q_size = 1048576; //queue size must be power of 2
spdlog::set_async_mode(max_q_size); spdlog::set_async_mode(q_size);
auto async_file= spd::daily_logger_st("async_file_logger", "logs/async_log.txt"); 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!"; async_file->info() << "This is async log.." << "Should be very fast!";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment