example fix

This commit is contained in:
gabime 2014-11-29 20:01:45 +02:00
parent 4e86da1bdb
commit 2485dae1cc
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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!";
//