#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.
|
| #define | LogPrintLevel_(category, level, should_ratelimit, ...) LogPrintFormatInternal(SourceLocation{__func__}, category, level, should_ratelimit, __VA_ARGS__) |
| |
| #define | LogInfo(...) LogPrintLevel_(BCLog::LogFlags::ALL, BCLog::Level::Info, /*should_ratelimit=*/true, __VA_ARGS__) |
| |
| #define | LogWarning(...) LogPrintLevel_(BCLog::LogFlags::ALL, BCLog::Level::Warning, /*should_ratelimit=*/true, __VA_ARGS__) |
| |
| #define | LogError(...) LogPrintLevel_(BCLog::LogFlags::ALL, BCLog::Level::Error, /*should_ratelimit=*/true, __VA_ARGS__) |
| |
| #define | detail_LogIfCategoryAndLevelEnabled(category, level, ...) |
| |
| #define | LogDebug(category, ...) detail_LogIfCategoryAndLevelEnabled(category, BCLog::Level::Debug, __VA_ARGS__) |
| |
| #define | LogTrace(category, ...) detail_LogIfCategoryAndLevelEnabled(category, BCLog::Level::Trace, __VA_ARGS__) |
| |
◆ detail_LogIfCategoryAndLevelEnabled
| #define detail_LogIfCategoryAndLevelEnabled |
( |
|
category, |
|
|
|
level, |
|
|
|
... |
|
) |
| |
Value: do { \
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
◆ LogError
Definition at line 97 of file log.h.
◆ LogInfo
Definition at line 95 of file log.h.
◆ LogPrintLevel_
Definition at line 89 of file log.h.
◆ LogTrace
◆ LogWarning
Definition at line 96 of file log.h.
◆ LogPrintFormatInternal()
template<typename... Args>
Definition at line 71 of file log.h.