45 std::shared_ptr<LogFormatter> formatter,
46 std::shared_ptr<LogWriter> writer,
60 const std::shared_ptr<LogWriter>&
getWriter()
const {
71 return level_.load(std::memory_order_acquire);
80 return level_.store(level, std::memory_order_release);
87 void flush()
override;
LogHandlerConfig getConfig() const override
LogLevel getLevel() const
void handleMessage(const LogMessage &message, const LogCategory *handlerCategory) override
const std::shared_ptr< LogWriter > writer_
const LogHandlerConfig config_
std::atomic< LogLevel > syncLevel_
const std::shared_ptr< LogFormatter > & getFormatter() const
—— Concurrent Priority Queue Implementation ——
const std::shared_ptr< LogFormatter > formatter_
StandardLogHandler(LogHandlerConfig config, std::shared_ptr< LogFormatter > formatter, std::shared_ptr< LogWriter > writer, LogLevel syncLevel=LogLevel::MAX_LEVEL)
std::atomic< LogLevel > level_
void setLevel(LogLevel level)
const std::shared_ptr< LogWriter > & getWriter() const