modify something

This commit is contained in:
CupWater
2026-08-18 13:55:04 +08:00
parent 693db85e3b
commit c7d4b87d3e
15 changed files with 51 additions and 46 deletions
+9 -10
View File
@@ -1,5 +1,4 @@
#ifndef FEATHERLOG_LOG_MANAGER_HPP
#define FEATHERLOG_LOG_MANAGER_HPP
#pragma once
#include <atomic>
#include <memory>
@@ -28,14 +27,16 @@ namespace flog
~LogManager();
LogLevel FLOG_CALL get_min_log_level() const noexcept;
void FLOG_CALL set_min_log_level(LogLevel level) noexcept;
_NODISCARD LogLevel FLOG_CALL get_min_log_level() const noexcept;
void FLOG_CALL set_min_log_level(LogLevel level) noexcept;
PushResult<std::unique_ptr<LogOutputter>> FLOG_CALL add_outputter(std::unique_ptr<LogOutputter> outputter);
bool FLOG_CALL contains_outputter(std::string_view name) const noexcept;
std::optional<std::unique_ptr<LogOutputter>> FLOG_CALL try_delete_outputter(std::string_view name) noexcept;
_NODISCARD PushResult<std::unique_ptr<LogOutputter>> FLOG_CALL add_outputter(
std::unique_ptr<LogOutputter> outputter);
std::shared_ptr<Logger> FLOG_CALL get_logger(const std::string &name);
_NODISCARD bool FLOG_CALL contains_outputter(std::string_view name) const;
std::optional<std::unique_ptr<LogOutputter>> FLOG_CALL try_delete_outputter(std::string_view name);
_NODISCARD std::shared_ptr<Logger> FLOG_CALL get_logger(const std::string &name);
size_t FLOG_CALL clean_unused_loggers();
@@ -53,5 +54,3 @@ namespace flog
std::unordered_map<std::string, std::shared_ptr<Logger>> m_loggers;
};
}
#endif