aboutsummaryrefslogtreecommitdiff
path: root/zenserver-test/zenserver-test.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-15 21:30:56 +0200
committerStefan Boberg <[email protected]>2021-09-15 21:30:56 +0200
commit681721f66359e90ee0e5d8967f6195230e361e5d (patch)
tree9f57b3531da6e8227086e80541f655873f7c7323 /zenserver-test/zenserver-test.cpp
parentFixed logging.h so it doesn't leak `using namespace std::literals` declaration (diff)
downloadzen-681721f66359e90ee0e5d8967f6195230e361e5d.tar.xz
zen-681721f66359e90ee0e5d8967f6195230e361e5d.zip
Added explicit logging initialization to main() of standalone executables, to make things work with the new default logger shadowing changes
Diffstat (limited to 'zenserver-test/zenserver-test.cpp')
-rw-r--r--zenserver-test/zenserver-test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/zenserver-test/zenserver-test.cpp b/zenserver-test/zenserver-test.cpp
index df17cc353..1ae3f39fa 100644
--- a/zenserver-test/zenserver-test.cpp
+++ b/zenserver-test/zenserver-test.cpp
@@ -659,6 +659,8 @@ main(int argc, char** argv)
zencore_forcelinktests();
+ zen::logging::InitializeLogging();
+
spdlog::set_level(spdlog::level::debug);
spdlog::set_formatter(std::make_unique<logging::full_formatter>("test", std::chrono::system_clock::now()));