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
+1 -3
View File
@@ -17,19 +17,17 @@
* along with LMS. If not, see <http://www.gnu.org/licenses/>.
*/
#include <iostream>
#include <thread>
#include <benchmark/benchmark.h>
#include "core/ILogger.hpp"
#include "core/ITraceLogger.hpp"
#include "core/StreamLogger.hpp"
namespace lms::core
{
// The trace logger is meant to built/destroyed once
const Service<logging::ILogger> logger{ std::make_unique<logging::StreamLogger>(std::cout, logging::StreamLogger::allSeverities) };
const Service<logging::ILogger> logger{ logging::createLogger() };
const Service<tracing::ITraceLogger> traceLogger{ tracing::createTraceLogger(tracing::Level::Overview) };
static void BM_TraceLogger_Overview(benchmark::State& state)