SHA256
finish log_manager.cpp
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include <featherlog/log_message.hpp>
|
||||
#include <featherlog/log_outputter.hpp>
|
||||
#include <featherlog/flog_definitions.h>
|
||||
#include <featherlog/push_result.hpp>
|
||||
|
||||
namespace flog {
|
||||
class FLOG_API LogManager : public std::enable_shared_from_this<LogManager> {
|
||||
@@ -25,13 +26,14 @@ namespace flog {
|
||||
|
||||
_NODISCARD static std::shared_ptr<LogManager> FLOG_CALL create();
|
||||
|
||||
~LogManager() = default;
|
||||
~LogManager();
|
||||
|
||||
LogLevel FLOG_CALL get_min_log_level() const noexcept;
|
||||
void FLOG_CALL set_min_log_level(LogLevel level) noexcept;
|
||||
|
||||
PushResult FLOG_CALL add_outputter(const std::string& name, std::unique_ptr<LogOutputter> outputter);
|
||||
std::optional<LogOutputter> FLOG_CALL get_outputter() 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>> try_delete_outputter(std::string_view name) noexcept;
|
||||
|
||||
std::shared_ptr<Logger> FLOG_CALL get_logger(const std::string &name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user