MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / initLogger

Method initLogger

src/Core/Engine/Engine.cpp:127–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 void Engine::initLogger() const
128 {
129 if (m_config.contains("Debug"))
130 {
131 vili::node debug = m_config.at("Debug");
132 if (debug.contains("logLevel"))
133 {
134 const unsigned int logLevel = debug.at("logLevel");
135 const auto level = static_cast<spdlog::level::level_enum>(logLevel);
136 Debug::Log->set_level(level);
137 Debug::Log->info("Log Level {}", logLevel);
138 }
139 }
140 }
141
142 void Engine::clean() const
143 {

Callers 1

initMethod · 0.95

Calls 4

containsMethod · 0.80
infoMethod · 0.80
atMethod · 0.45
set_levelMethod · 0.45

Tested by

no test coverage detected