diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 4d847736..ee2bf3cf 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -75,6 +75,13 @@ inline const char* to_str(spdlog::level::level_enum l) } } //level +//Async queue overflow options +enum class async_queue_overflow_policy +{ + block_retry, // Block / yield / sleep until message can be enqueued + discard_log_msg // Discard the message it enqueue fails +}; + // // Log exception // diff --git a/include/spdlog/spdlog.h b/include/spdlog/spdlog.h index 27673310..23d2a189 100644 --- a/include/spdlog/spdlog.h +++ b/include/spdlog/spdlog.h @@ -61,11 +61,6 @@ void set_level(level::level_enum log_level); // Async mode - off by default. // -enum class async_queue_overflow_policy -{ - block_retry, // Block / yield / sleep until message can be enqueued - discard_log_msg // Discard the message it enqueue fails -}; // Turn on async mode and set the queue size for each async_logger