3#include <spdlog/sinks/stdout_color_sinks.h>
23 std::shared_ptr<RingLogSinkMt>
ring;
24 std::shared_ptr<spdlog::sinks::stdout_color_sink_mt>
console;
44 const std::filesystem::path& userCacheRoot);
Definition auto_tuning_setup.cc:10
LogSinks installLogSinks()
Replaces the default logger with a console sink plus the in-memory ring.
Definition logging.cc:14
std::filesystem::path applyLoggingConfig(const LogSinks &sinks, const LoggingConfig &config, const std::filesystem::path &userCacheRoot)
Applies the configured levels and adds the rotating file sink.
Definition logging.cc:24
"logging" block — verbosity and the log file.
Definition config.h:189
The two sinks that exist before any configuration is read.
Definition logging.h:21
std::shared_ptr< spdlog::sinks::stdout_color_sink_mt > console
Definition logging.h:24
std::shared_ptr< RingLogSinkMt > ring
Backs GET /api/log. The HTTP server borrows it for the lifetime of the process.
Definition logging.h:23