aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/diag
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/diag')
-rw-r--r--src/zenserver/diag/logging.cpp8
-rw-r--r--src/zenserver/diag/logging.h6
2 files changed, 11 insertions, 3 deletions
diff --git a/src/zenserver/diag/logging.cpp b/src/zenserver/diag/logging.cpp
index 29c8eec4c..07e34305c 100644
--- a/src/zenserver/diag/logging.cpp
+++ b/src/zenserver/diag/logging.cpp
@@ -27,7 +27,7 @@ ZEN_THIRD_PARTY_INCLUDES_END
// Custom logging -- test code, this should be tweaked
-namespace logging {
+namespace zen::logging {
using namespace spdlog;
using namespace spdlog::details;
@@ -317,7 +317,9 @@ private:
std::string m_LogId;
};
-} // namespace logging
+} // namespace zen::logging
+
+namespace zen {
void
InitializeLogging(const ZenServerOptions& GlobalOptions)
@@ -500,3 +502,5 @@ ShutdownLogging()
DefaultLogger.info("log ending at {}", zen::DateTime::Now().ToIso8601());
zen::logging::ShutdownLogging();
}
+
+} // namespace zen
diff --git a/src/zenserver/diag/logging.h b/src/zenserver/diag/logging.h
index 8df49f842..91b74a094 100644
--- a/src/zenserver/diag/logging.h
+++ b/src/zenserver/diag/logging.h
@@ -3,8 +3,12 @@
#pragma once
#include <zencore/logging.h>
+
+namespace zen {
+
struct ZenServerOptions;
void InitializeLogging(const ZenServerOptions& GlobalOptions);
-
void ShutdownLogging();
+
+} // namespace zen