23 lines
445 B
C++
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;
|
|
};
|
|
|
|
}
|