carl  24.04
Computer ARithmetic Library
logging.cpp
Go to the documentation of this file.
1 #include "logging.h"
2 
3 #include "Logger.h"
4 
5 namespace carl::logging {
6 
7 bool visible(LogLevel level, const std::string& channel) noexcept {
8  return Logger::getInstance().visible(level, channel);
9 }
10 
11 void log(LogLevel level, const std::string& channel, const std::stringstream& ss, const RecordInfo& info) {
12  Logger::getInstance().log(level, channel, ss, info);
13 }
14 
15 }
Contains a custom logging facility.
Definition: carl-logging.cpp:6
LogLevel
Indicated which log messages should be forwarded to some sink.
Definition: LogLevel.h:12
void log(LogLevel level, const std::string &channel, const std::stringstream &ss, const RecordInfo &info)
Definition: logging.cpp:11
bool visible(LogLevel level, const std::string &channel) noexcept
Definition: logging.cpp:7
static Logger & getInstance()
Returns the single instance of this class by reference.
Definition: Singleton.h:45
void log(LogLevel level, const std::string &channel, const std::stringstream &ss, const RecordInfo &info)
Logs a message.
Definition: Logger.h:177
bool visible(LogLevel level, const std::string &channel) const noexcept
Checks whether a log message would be visible for some sink.
Definition: Logger.h:162
Additional information about a log message.
Definition: logging.h:13