Reworked log system: now logs are handled by lms itself (better control on what is logged), ref #725

This commit is contained in:
emeric
2025-08-09 12:49:24 +02:00
parent d529f4cb98
commit 317a6f504e
15 changed files with 229 additions and 211 deletions
@@ -21,13 +21,12 @@
#include "core/ILogger.hpp"
#include "core/Service.hpp"
#include "core/StreamLogger.hpp"
int main(int argc, char** argv)
{
using namespace lms;
// log to stdout
core::Service<core::logging::ILogger> logger{ std::make_unique<core::logging::StreamLogger>(std::cout, core::EnumSet<core::logging::Severity>{ core::logging::Severity::FATAL, core::logging::Severity::ERROR }) };
core::Service<core::logging::ILogger> logger{ core::logging::createLogger(core::logging::Severity::ERROR) };
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();