From d84260d180be72b547d04351c91a02e7c75f2b51 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Sun, 26 Sep 2021 22:09:13 +0200 Subject: httpsys: Some logging improvements --- zenhttp/httpsys.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'zenhttp/httpsys.h') diff --git a/zenhttp/httpsys.h b/zenhttp/httpsys.h index 6616817ec..2e51c538f 100644 --- a/zenhttp/httpsys.h +++ b/zenhttp/httpsys.h @@ -20,6 +20,10 @@ # include # include +namespace spdlog { +class logger; +} + namespace zen { /** @@ -56,8 +60,13 @@ private: void UnregisterService(const char* Endpoint, HttpService& Service); private: - bool m_IsOk = false; - bool m_IsHttpInitialized = false; + spdlog::logger& m_Log; + spdlog::logger& m_RequestLog; + spdlog::logger& Log() { return m_Log; } + + bool m_IsOk = false; + bool m_IsHttpInitialized = false; + bool m_IsRequestLoggingEnabled = false; WinIoThreadPool m_ThreadPool; std::wstring m_BaseUri; // http://*:nnnn/ -- cgit v1.2.3