#pragma once #include #include #include #include #include namespace vl::logging { struct Provider { virtual ~Provider() = default; // P3: get-or-create virtual std::shared_ptr createConsole(std::string prefix, Level lvl) = 0; virtual std::shared_ptr createFile(std::string prefix, std::string basePath, std::uintmax_t maxBytes, Level lvl) = 0; virtual std::shared_ptr createCombined(std::string prefix, std::string basePath, std::uintmax_t maxBytes, Level lvl) = 0; virtual std::shared_ptr get(std::string_view prefix) const = 0; // throws if absent virtual bool exists(std::string_view prefix) const = 0; }; } // namespace vl::log