|
Motion Master 6.0.0-alpha.86
Next-generation motion control software
|
Startup of the process-wide logger: the sinks, their levels, and the flush policy. More...
#include <spdlog/sinks/stdout_color_sinks.h>#include <filesystem>#include <memory>#include "config.h"#include "ring_log_sink.h"Go to the source code of this file.
Classes | |
| struct | mm::LogSinks |
| The two sinks that exist before any configuration is read. More... | |
Namespaces | |
| namespace | mm |
Functions | |
| LogSinks | mm::installLogSinks () |
| Replaces the default logger with a console sink plus the in-memory ring. | |
| std::filesystem::path | mm::applyLoggingConfig (const LogSinks &sinks, const LoggingConfig &config, const std::filesystem::path &userCacheRoot) |
| Applies the configured levels and adds the rotating file sink. | |
Startup of the process-wide logger: the sinks, their levels, and the flush policy.
Split in two because the order matters. installLogSinks runs before the configuration is read, so that a config-file error is itself logged and reaches GET /api/log; applyLoggingConfig then applies what that file asked for.