SHA256
.
This commit is contained in:
@@ -3,24 +3,25 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "log_formatter.hpp"
|
||||
#include "log_message.hpp"
|
||||
#include <featherlog/log_formatter.hpp>
|
||||
#include <featherlog/log_message.hpp>
|
||||
#include <featherlog/flog_definitions.h>
|
||||
|
||||
namespace flog
|
||||
{
|
||||
class LogOutputter
|
||||
class FLOG_API LogOutputter
|
||||
{
|
||||
public:
|
||||
virtual ~LogOutputter() = default;
|
||||
|
||||
std::unique_ptr<LogFormatter> set_formatter(const std::unique_ptr<LogFormatter>& formatter);
|
||||
std::unique_ptr<LogFormatter>& get_formatter();
|
||||
std::unique_ptr<LogFormatter> FLOG_CALL set_formatter(const std::unique_ptr<LogFormatter>& formatter);
|
||||
[[nodiscard]] const std::unique_ptr<LogFormatter>& FLOG_CALL get_formatter() const;
|
||||
|
||||
virtual void write(const LogMessage& message) = 0;
|
||||
virtual void FLOG_CALL write(const LogMessage& message) = 0;
|
||||
|
||||
protected:
|
||||
std::unique_ptr<LogFormatter> m_logFormatter;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user