More improvements to the async logger

This commit is contained in:
gabi
2014-12-07 04:18:07 +02:00
parent 9feb5fbaf0
commit d37bded994
6 changed files with 114 additions and 131 deletions

View File

@@ -65,9 +65,8 @@ void set_level(level::level_enum log_level);
//
// Turn on async mode and set the queue size for each async_logger
// shutdown_duration indicates max time to wait for the worker thread to log its messages before terminating.
void set_async_mode(size_t queue_size, const log_clock::duration& shutdown_duration = std::chrono::seconds(5));
void set_async_mode(size_t queue_size);
// Turn off async mode
void set_sync_mode();