mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 11:55:51 +00:00
refactor: Refactor Logger.hpp and LoggerFixtures.hpp (#2356)
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user