SHA256
modify something
This commit is contained in:
@@ -6,19 +6,21 @@
|
||||
#include <featherlog/log_message.hpp>
|
||||
#include <featherlog/flog_definitions.h>
|
||||
|
||||
namespace flog {
|
||||
class FLOG_API LogOutputter {
|
||||
namespace flog
|
||||
{
|
||||
class FLOG_API LogOutputter
|
||||
{
|
||||
public:
|
||||
explicit LogOutputter(std::string name, std::unique_ptr<LogFormatter> formatter) noexcept
|
||||
LogOutputter(std::string name, std::unique_ptr<LogFormatter> formatter) noexcept
|
||||
: m_name(std::move(name)), m_logFormatter(std::move(formatter))
|
||||
{ }
|
||||
|
||||
virtual ~LogOutputter() = default;
|
||||
|
||||
_NODISCARD std::string FLOG_CALL getName() const noexcept { return m_name; }
|
||||
NODISCARD std::string FLOG_CALL getName() const noexcept { return m_name; }
|
||||
|
||||
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;
|
||||
NODISCARD const std::unique_ptr<LogFormatter> & FLOG_CALL get_formatter() const;
|
||||
|
||||
virtual void FLOG_CALL write_log(const LogMessage &message) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user