From 307043883b3af8fbaa2163440e40d6c61cc77c03 Mon Sep 17 00:00:00 2001 From: Denis Ivaykin Date: Thu, 15 Jan 2015 02:34:08 -0600 Subject: [PATCH] move to common --- include/spdlog/common.h | 7 +++++++ include/spdlog/spdlog.h | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) 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