refactor: Refactor Logger.hpp and LoggerFixtures.hpp (#2356)

This commit is contained in:
Ayaz Salikhov
2025-07-23 17:49:27 +01:00
committed by GitHub
parent b29e2e4c88
commit 60bbe1eb72
5 changed files with 71 additions and 60 deletions

View File

@@ -269,7 +269,6 @@ public:
*/
class LogService {
static Logger generalLog; /*< Global logger for General channel */
static Logger alertLog; /*< Global logger for Alerts channel */
static boost::log::filter filter;
public:
@@ -356,18 +355,6 @@ public:
return generalLog.fatal(loc);
}
/**
* @brief Globally accessible Alert logger
*
* @param loc The source location of the log message
* @return The pump to use for logging
*/
[[nodiscard]] static Logger::Pump
alert(SourceLocationType const& loc = CURRENT_SRC_LOCATION)
{
return alertLog.warn(loc);
}
/**
* @brief Whether the LogService is enabled or not
*