![]() |
Bitcoin Core 32.1.0
P2P Digital Currency
|
#include <logging/categories.h>#include <tinyformat.h>#include <util/check.h>#include <util/threadnames.h>#include <util/time.h>#include <cstdint>#include <source_location>#include <string>#include <string_view>Go to the source code of this file.
Classes | |
| class | SourceLocation |
| Like std::source_location, but allowing to override the function name. More... | |
| struct | util::log::NoRateLimitTag |
| Structure and constant for tagging not to rate limit. More... | |
| struct | util::log::Entry |
Namespaces | |
| namespace | util |
| namespace | util::log |
| namespace | BCLog |
Macros | |
| #define | detail_LogWithSrcLoc(category, level, ...) |
| #define | LogInfo(...) |
| #define | LogWarning(...) |
| #define | LogError(...) |
| #define | detail_LogIfCategoryAndLevelEnabled(category, shouldlog, level, ...) |
| #define | LogDebug(category, ...) |
| #define | LogTrace(category, ...) |
Typedefs | |
| using | util::log::Category = uint64_t |
| Opaque to util::log; interpreted by consumers (e.g., BCLog::LogFlags). | |
| using | BCLog::Level = util::log::Level |
| Alias for compatibility. Prefer util::log::Level over BCLog::Level in new code. | |
Enumerations | |
| enum class | util::log::Level { util::log::Trace = 0 , util::log::Debug , util::log::Info , util::log::Warning , util::log::Error } |
Functions | |
| bool | util::log::ShouldDebugLog (Category category) |
| Return whether messages with specified category should be debug logged. | |
| bool | util::log::ShouldTraceLog (Category category) |
| Return whether messages with specified category should be trace logged. | |
| void | util::log::Log (Entry entry) |
| Send message to be logged. | |
| template<typename... Args> | |
| void | util::log::LogPrintFormatInternal_ (SourceLocation &&source_loc, BCLog::LogFlags flag, util::log::Level level, bool should_ratelimit, util::ConstevalFormatString< sizeof...(Args)> fmt, const Args &... args) |
| template<typename... Args> | |
| void | util::log::LogPrintFormatInternal (SourceLocation &&source_loc, BCLog::LogFlags flag, util::log::Level level, util::ConstevalFormatString< sizeof...(Args)> fmt, const Args &... args) |
| template<typename... Args> | |
| void | util::log::LogPrintFormatInternal (SourceLocation &&source_loc, BCLog::LogFlags flag, util::log::Level level, util::log::NoRateLimitTag, util::ConstevalFormatString< sizeof...(Args)> fmt, const Args &... args) |
Variables | |
| constexpr NoRateLimitTag | util::log::NO_RATE_LIMIT {} |
| #define detail_LogIfCategoryAndLevelEnabled | ( | category, | |
| shouldlog, | |||
| level, | |||
| ... ) |
| #define detail_LogWithSrcLoc | ( | category, | |
| level, | |||
| ... ) |
| #define LogDebug | ( | category, | |
| ... ) |
| #define LogError | ( | ... | ) |
| #define LogInfo | ( | ... | ) |
| #define LogTrace | ( | category, | |
| ... ) |
| #define LogWarning | ( | ... | ) |