aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpsys.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-26 22:09:13 +0200
committerStefan Boberg <[email protected]>2021-09-26 22:09:13 +0200
commitd84260d180be72b547d04351c91a02e7c75f2b51 (patch)
tree72bb2fd809fe2ae7d7413995db8e7540ead034a2 /zenhttp/httpsys.h
parentReimplemented CasLogFile in terms of BasicFile (diff)
downloadzen-d84260d180be72b547d04351c91a02e7c75f2b51.tar.xz
zen-d84260d180be72b547d04351c91a02e7c75f2b51.zip
httpsys: Some logging improvements
Diffstat (limited to 'zenhttp/httpsys.h')
-rw-r--r--zenhttp/httpsys.h13
1 files changed, 11 insertions, 2 deletions
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 <atlbase.h>
# include <http.h>
+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/