SHA256
finish log_manager.cpp
This commit is contained in:
@@ -10,14 +10,20 @@
|
||||
namespace flog {
|
||||
class FLOG_API LogOutputter {
|
||||
public:
|
||||
explicit LogOutputter(std::string name) noexcept : name(std::move(name)) {}
|
||||
|
||||
virtual ~LogOutputter() = default;
|
||||
|
||||
std::string& getName() const noexcept;
|
||||
|
||||
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 FLOG_CALL write(const LogMessage &message) = 0;
|
||||
|
||||
protected:
|
||||
std::string name;
|
||||
|
||||
std::unique_ptr<LogFormatter> m_logFormatter;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user