diff --git a/quill/include/quill/Quill.h b/quill/include/quill/Quill.h index 9aafaa56..ad3be69f 100644 --- a/quill/include/quill/Quill.h +++ b/quill/include/quill/Quill.h @@ -5,6 +5,8 @@ #pragma once +#include "quill/TweakMe.h" + #include "quill/detail/BackendWorker.h" // for backend_worker_error_h... #include "quill/detail/LogMacros.h" // for filename_t #include "quill/detail/LogManager.h" // for LogManager diff --git a/quill/include/quill/QuillError.h b/quill/include/quill/QuillError.h index de3dc3fb..50db7f38 100644 --- a/quill/include/quill/QuillError.h +++ b/quill/include/quill/QuillError.h @@ -6,6 +6,7 @@ #pragma once #include "quill/TweakMe.h" + #include "quill/detail/misc/Macros.h" #include #include diff --git a/quill/include/quill/detail/BackendWorker.h b/quill/include/quill/detail/BackendWorker.h index 2ba9a34a..5b9d2205 100644 --- a/quill/include/quill/detail/BackendWorker.h +++ b/quill/include/quill/detail/BackendWorker.h @@ -5,6 +5,8 @@ #pragma once +#include "quill/TweakMe.h" + #include "quill/QuillError.h" // for QUILL_CATCH, QUILL... #include "quill/detail/BoundedSPSCQueue.h" // for BoundedSPSCQueue<>... #include "quill/detail/Config.h" // for Config diff --git a/quill/include/quill/detail/LogManager.h b/quill/include/quill/detail/LogManager.h index 82965991..a60519b3 100644 --- a/quill/include/quill/detail/LogManager.h +++ b/quill/include/quill/detail/LogManager.h @@ -5,6 +5,8 @@ #pragma once +#include "quill/TweakMe.h" + #include "quill/detail/BackendWorker.h" #include "quill/detail/Config.h" #include "quill/detail/HandlerCollection.h" diff --git a/quill/src/Quill.cpp b/quill/src/Quill.cpp index f91d55eb..5b890cd1 100644 --- a/quill/src/Quill.cpp +++ b/quill/src/Quill.cpp @@ -121,6 +121,15 @@ void set_default_logger_handler(std::initializer_list handlers) /***/ void flush() { detail::LogManagerSingleton::instance().log_manager().flush(); } +/***/ +#if !defined(QUILL_NO_EXCEPTIONS) +void set_backend_worker_error_handler(backend_worker_error_handler_t backend_worker_error_handler) +{ + detail::LogManagerSingleton::instance().log_manager().set_backend_worker_error_handler( + std::move(backend_worker_error_handler)); +} +#endif + // ** Config ** // namespace config { @@ -142,15 +151,6 @@ void set_backend_thread_sleep_duration(std::chrono::nanoseconds sleep_duration) detail::LogManagerSingleton::instance().log_manager().config().set_backend_thread_sleep_duration(sleep_duration); } -/***/ -#if !defined(QUILL_NO_EXCEPTIONS) -void set_backend_worker_error_handler(backend_worker_error_handler_t backend_worker_error_handler) -{ - detail::LogManagerSingleton::instance().log_manager().set_backend_worker_error_handler( - std::move(backend_worker_error_handler)); -} -#endif - } // namespace config } // namespace quill \ No newline at end of file