From 2485dae1cca05bb2cb36b60b2bc7204de51f174b Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 29 Nov 2014 20:01:45 +0200 Subject: [PATCH] example fix --- example/bench.cpp | 6 +++--- example/example.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/bench.cpp b/example/bench.cpp index 87cf4946..b1e908af 100644 --- a/example/bench.cpp +++ b/example/bench.cpp @@ -52,7 +52,7 @@ int main(int argc, char* argv[]) int howmany = 1000000; int threads = 10; - bool auto_flush = true; + bool auto_flush = false; int file_size = 30 * 1024 * 1024; int rotating_files = 5; @@ -78,8 +78,8 @@ int main(int argc, char* argv[]) cout << threads << " threads sharing same logger, " << format(howmany) << " iterations, auto_flush=" << auto_flush << endl; cout << "*******************************************************************************\n"; - auto rotating_mt = spdlog::rotating_logger_mt("rotating_mt", "logs/rotating_mt", file_size, rotating_files, auto_flush); - bench_mt(howmany, rotating_mt, threads); + auto rotating_mt = spdlog::rotating_logger_mt("rotating_mt", "logs/rotating_mt", file_size, rotating_files, auto_flush); + bench_mt(howmany, rotating_mt, threads); auto daily_mt = spdlog::daily_logger_mt("daily_mt", "logs/daily_mt", auto_flush); diff --git a/example/example.cpp b/example/example.cpp index 889d96bc..fbd5fc3f 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -70,7 +70,7 @@ int main(int, char* []) size_t max_q_size = 100000; spdlog::set_async_mode(max_q_size); - auto async_file= spd::daily_logger_st("async_file_logger", "async_" + filename); + 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!"; //