#include <logging/categories.h>
#include <tinyformat.h>
#include <util/check.h>
#include <cstdint>
#include <source_location>
#include <string>
#include <string_view>
Go to the source code of this file.
◆ detail_LogIfCategoryAndLevelEnabled
| #define detail_LogIfCategoryAndLevelEnabled |
( |
| category, |
|
|
| level, |
|
|
| ... ) |
Value:do { \
bool rate_limit{level >= BCLog::Level::Info}; \
Assume(!rate_limit); \
LogPrintLevel_(category, level, rate_limit, __VA_ARGS__); \
} \
} while (0)
bool ShouldLog(Category category, Level level)
Return whether messages with specified category and level should be logged.
Definition at line 105 of file log.h.
◆ LogDebug
| #define LogDebug |
( |
| category, |
|
|
| ... ) |
Value:
#define detail_LogIfCategoryAndLevelEnabled(category, level,...)
Definition at line 115 of file log.h.
◆ LogError
Value:
#define LogPrintLevel_(category, level, should_ratelimit,...)
Definition at line 97 of file log.h.
◆ LogInfo
Value:
Definition at line 95 of file log.h.
◆ LogPrintLevel_
| #define LogPrintLevel_ |
( |
| category, |
|
|
| level, |
|
|
| should_ratelimit, |
|
|
| ... ) |
Value:
Like std::source_location, but allowing to override the function name.
void LogPrintFormatInternal(SourceLocation &&source_loc, BCLog::LogFlags flag, BCLog::Level level, bool should_ratelimit, util::ConstevalFormatString< sizeof...(Args)> fmt, const Args &... args)
Definition at line 89 of file log.h.
◆ LogTrace
| #define LogTrace |
( |
| category, |
|
|
| ... ) |
Value:
Definition at line 116 of file log.h.
◆ LogWarning
| #define LogWarning |
( |
| ... | ) |
|
Value:
Definition at line 96 of file log.h.
◆ LogPrintFormatInternal()
template<typename... Args>
Definition at line 71 of file log.h.