aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenhttp/include')
-rw-r--r--src/zenhttp/include/zenhttp/httpclient.h9
-rw-r--r--src/zenhttp/include/zenhttp/httpstats.h6
-rw-r--r--src/zenhttp/include/zenhttp/httpstatus.h6
3 files changed, 9 insertions, 12 deletions
diff --git a/src/zenhttp/include/zenhttp/httpclient.h b/src/zenhttp/include/zenhttp/httpclient.h
index ae1e2bf20..9de5c7cce 100644
--- a/src/zenhttp/include/zenhttp/httpclient.h
+++ b/src/zenhttp/include/zenhttp/httpclient.h
@@ -5,16 +5,13 @@
#include "zenhttp.h"
#include <zencore/iobuffer.h>
+#include <zencore/logbase.h>
#include <zencore/uid.h>
#include <zenhttp/httpcommon.h>
#include <optional>
#include <unordered_map>
-namespace spdlog {
-class logger;
-} // namespace spdlog
-
namespace zen {
class CbPackage;
@@ -148,13 +145,13 @@ public:
return std::make_pair("Accept", MapContentTypeToString(ContentType));
}
- spdlog::logger& Logger() { return m_Log; }
+ LoggerRef Logger() { return m_Log; }
std::string_view GetBaseUri() const { return m_BaseUri; }
private:
struct Impl;
- spdlog::logger& m_Log;
+ LoggerRef m_Log;
std::string m_BaseUri;
std::string m_SessionId;
const HttpClientSettings m_ConnectionSettings;
diff --git a/src/zenhttp/include/zenhttp/httpstats.h b/src/zenhttp/include/zenhttp/httpstats.h
index 4a1cdcb20..e6fea6765 100644
--- a/src/zenhttp/include/zenhttp/httpstats.h
+++ b/src/zenhttp/include/zenhttp/httpstats.h
@@ -21,13 +21,13 @@ public:
virtual void UnregisterHandler(std::string_view Id, IHttpStatsProvider& Provider) override;
private:
- spdlog::logger& m_Log;
+ LoggerRef m_Log;
HttpRequestRouter m_Router;
- inline spdlog::logger& Log() { return m_Log; }
+ inline LoggerRef Log() { return m_Log; }
RwLock m_Lock;
std::map<std::string, IHttpStatsProvider*> m_Providers;
};
-} // namespace zen \ No newline at end of file
+} // namespace zen
diff --git a/src/zenhttp/include/zenhttp/httpstatus.h b/src/zenhttp/include/zenhttp/httpstatus.h
index b04e45324..093f62481 100644
--- a/src/zenhttp/include/zenhttp/httpstatus.h
+++ b/src/zenhttp/include/zenhttp/httpstatus.h
@@ -26,13 +26,13 @@ public:
void UnregisterHandler(std::string_view Id, IHttpStatusProvider& Provider);
private:
- spdlog::logger& m_Log;
+ LoggerRef m_Log;
HttpRequestRouter m_Router;
RwLock m_Lock;
std::map<std::string, IHttpStatusProvider*> m_Providers;
- inline spdlog::logger& Log() { return m_Log; }
+ inline LoggerRef Log() { return m_Log; }
};
-} // namespace zen \ No newline at end of file
+} // namespace zen