aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/LoggerManager.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-12 06:02:37 +0000
committersaturneric <[email protected]>2024-01-12 06:02:37 +0000
commitbf538056b24a68b8fd235b1c50991ee8eb46a776 (patch)
treee1bab54095b80df62b321fb5bd69453f9f951b05 /src/core/function/LoggerManager.h
parentfeat: improve api and ui of keys import and export (diff)
downloadGpgFrontend-bf538056b24a68b8fd235b1c50991ee8eb46a776.tar.gz
GpgFrontend-bf538056b24a68b8fd235b1c50991ee8eb46a776.zip
refactor: use QString instead of std::string and improve threading system
Diffstat (limited to 'src/core/function/LoggerManager.h')
-rw-r--r--src/core/function/LoggerManager.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/function/LoggerManager.h b/src/core/function/LoggerManager.h
index 531e6efe..78fecc3c 100644
--- a/src/core/function/LoggerManager.h
+++ b/src/core/function/LoggerManager.h
@@ -43,13 +43,13 @@ class GPGFRONTEND_CORE_EXPORT LoggerManager
~LoggerManager() override;
- auto RegisterAsyncLogger(const std::string& id, spdlog::level::level_enum)
+ auto RegisterAsyncLogger(const QString& id, spdlog::level::level_enum)
-> std::shared_ptr<spdlog::logger>;
- auto RegisterSyncLogger(const std::string& id, spdlog::level::level_enum)
+ auto RegisterSyncLogger(const QString& id, spdlog::level::level_enum)
-> std::shared_ptr<spdlog::logger>;
- auto GetLogger(const std::string& id) -> std::shared_ptr<spdlog::logger>;
+ auto GetLogger(const QString& id) -> std::shared_ptr<spdlog::logger>;
static auto GetDefaultLogger() -> std::shared_ptr<spdlog::logger>;
@@ -59,7 +59,7 @@ class GPGFRONTEND_CORE_EXPORT LoggerManager
static spdlog::level::level_enum default_log_level;
static std::shared_ptr<spdlog::logger> default_logger;
- std::map<std::string, std::shared_ptr<spdlog::logger>> logger_map_;
+ std::map<QString, std::shared_ptr<spdlog::logger>> logger_map_;
};
} // namespace GpgFrontend \ No newline at end of file