Files
ugly/source/log/include/ILogFacility.hpp
2025-07-31 02:09:45 -04:00

23 lines
445 B
C++

#pragma once
#include <format>
#include <string_view>
namespace ugly {
/**
* \brief Interface for a generic log-like object.
*/
class ILogFacility {
public:
~ILogFacility() = default;
/**
* \brief Put a message into the log, \c std::vformat -style.
* \param fmt Format string.
* \param args Format arguments.
*/
virtual void vlog(std::string_view fmt, std::format_args args) = 0;
};
}