Commit a50e7ed6 authored by gabime's avatar gabime

example update

parent e87af081
...@@ -88,8 +88,9 @@ int main(int, char* []) ...@@ -88,8 +88,9 @@ int main(int, char* [])
size_t q_size = 1048576; size_t q_size = 1048576;
spdlog::set_async_mode(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!"; for(int i = 0; i < 100; i++)
async_file->info("This is async log message #{}.. Should be very fast.. ", i);
} }
catch (const spd::spdlog_ex& ex) catch (const spd::spdlog_ex& ex)
{ {
......
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