aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/servers/httpsys.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenhttp/servers/httpsys.cpp')
-rw-r--r--src/zenhttp/servers/httpsys.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/zenhttp/servers/httpsys.cpp b/src/zenhttp/servers/httpsys.cpp
index f1cd3e3fc..4eeab6662 100644
--- a/src/zenhttp/servers/httpsys.cpp
+++ b/src/zenhttp/servers/httpsys.cpp
@@ -23,10 +23,6 @@
# include <http.h>
-namespace spdlog {
-class logger;
-}
-
namespace zen {
/**
@@ -70,9 +66,9 @@ private:
void UnregisterService(const char* Endpoint, HttpService& Service);
private:
- spdlog::logger& m_Log;
- spdlog::logger& m_RequestLog;
- spdlog::logger& Log() { return m_Log; }
+ LoggerRef m_Log;
+ LoggerRef m_RequestLog;
+ LoggerRef Log() { return m_Log; }
bool m_IsOk = false;
bool m_IsHttpInitialized = false;
@@ -1239,7 +1235,7 @@ HttpSysServer::Run(bool IsInteractive)
{
if (IsInteractive)
{
- zen::logging::ConsoleLog().info("Zen Server running (http.sys). Press ESC or Q to quit");
+ ZEN_CONSOLE("Zen Server running (http.sys). Press ESC or Q to quit");
}
do
@@ -1525,7 +1521,7 @@ HttpSysTransaction::HandleCompletion(ULONG IoResult, ULONG_PTR NumberOfBytesTran
{
if (m_HandlerRequest.has_value())
{
- m_HttpServer.m_RequestLog.info("{} {}", ToString(m_HandlerRequest->RequestVerb()), m_HandlerRequest->RelativeUri());
+ ZEN_LOG_INFO(m_HttpServer.m_RequestLog, "{} {}", ToString(m_HandlerRequest->RequestVerb()), m_HandlerRequest->RelativeUri());
}
}