carl
24.04
Computer ARithmetic Library
|
Go to the source code of this file.
Data Structures | |
struct | carl::logging::RecordInfo |
Additional information about a log message. More... | |
Namespaces | |
carl | |
carl is the main namespace for the library. | |
carl::logging | |
Contains a custom logging facility. | |
Macros | |
#define | __CARL_LOG_RECORD ::carl::logging::RecordInfo{__FILE__, __func__, __LINE__} |
Create a record info. More... | |
#define | __CARL_LOG_RECORD_NOFUNC ::carl::logging::RecordInfo{__FILE__, "", __LINE__} |
Create a record info without function name. More... | |
#define | __CARL_LOG(level, channel, expr) |
Basic logging macro. More... | |
#define | __CARL_LOG_NOFUNC(level, channel, expr) |
Basic logging macro without function name. More... | |
#define | __CARL_LOG_FUNC(channel, args) __CARL_LOG_NOFUNC(::carl::logging::LogLevel::LVL_TRACE, channel, __func__ << "(" << args << ")"); |
Intended to be called when entering a function. Format: <function name>(<args>) . More... | |
#define | __CARL_LOG_TRACE(channel, expr) __CARL_LOG(::carl::logging::LogLevel::LVL_TRACE, channel, expr) |
Log with level LVL_TRACE. More... | |
#define | __CARL_LOG_DEBUG(channel, expr) __CARL_LOG(::carl::logging::LogLevel::LVL_DEBUG, channel, expr) |
Log with level LVL_DEBUG. More... | |
#define | __CARL_LOG_INFO(channel, expr) __CARL_LOG(::carl::logging::LogLevel::LVL_INFO, channel, expr) |
Log with level LVL_INFO. More... | |
#define | __CARL_LOG_WARN(channel, expr) __CARL_LOG(::carl::logging::LogLevel::LVL_WARN, channel, expr) |
Log with level LVL_WARN. More... | |
#define | __CARL_LOG_ERROR(channel, expr) __CARL_LOG(::carl::logging::LogLevel::LVL_ERROR, channel, expr) |
Log with level LVL_ERROR. More... | |
#define | __CARL_LOG_FATAL(channel, expr) __CARL_LOG(::carl::logging::LogLevel::LVL_FATAL, channel, expr) |
Log with level LVL_FATAL. More... | |
#define | __CARL_LOG_ASSERT(channel, condition, expr) if (!(condition)) { __CARL_LOG_FATAL(channel, expr); assert(condition); } |
Log and assert the given condition, if the condition evaluates to false. More... | |
Functions | |
bool | carl::logging::visible (LogLevel level, const std::string &channel) noexcept |
void | carl::logging::log (LogLevel level, const std::string &channel, const std::stringstream &ss, const RecordInfo &info) |
#define __CARL_LOG | ( | level, | |
channel, | |||
expr | |||
) |
Basic logging macro.
#define __CARL_LOG_ASSERT | ( | channel, | |
condition, | |||
expr | |||
) | if (!(condition)) { __CARL_LOG_FATAL(channel, expr); assert(condition); } |
#define __CARL_LOG_DEBUG | ( | channel, | |
expr | |||
) | __CARL_LOG(::carl::logging::LogLevel::LVL_DEBUG, channel, expr) |
#define __CARL_LOG_ERROR | ( | channel, | |
expr | |||
) | __CARL_LOG(::carl::logging::LogLevel::LVL_ERROR, channel, expr) |
#define __CARL_LOG_FATAL | ( | channel, | |
expr | |||
) | __CARL_LOG(::carl::logging::LogLevel::LVL_FATAL, channel, expr) |
#define __CARL_LOG_FUNC | ( | channel, | |
args | |||
) | __CARL_LOG_NOFUNC(::carl::logging::LogLevel::LVL_TRACE, channel, __func__ << "(" << args << ")"); |
#define __CARL_LOG_INFO | ( | channel, | |
expr | |||
) | __CARL_LOG(::carl::logging::LogLevel::LVL_INFO, channel, expr) |
#define __CARL_LOG_NOFUNC | ( | level, | |
channel, | |||
expr | |||
) |
Basic logging macro without function name.
#define __CARL_LOG_RECORD ::carl::logging::RecordInfo{__FILE__, __func__, __LINE__} |
#define __CARL_LOG_RECORD_NOFUNC ::carl::logging::RecordInfo{__FILE__, "", __LINE__} |
#define __CARL_LOG_TRACE | ( | channel, | |
expr | |||
) | __CARL_LOG(::carl::logging::LogLevel::LVL_TRACE, channel, expr) |
#define __CARL_LOG_WARN | ( | channel, | |
expr | |||
) | __CARL_LOG(::carl::logging::LogLevel::LVL_WARN, channel, expr) |