![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#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.
Classes | |
| class | SourceLocation |
| Like std::source_location, but allowing to override the function name. More... | |
| struct | util::log::Entry |
Namespaces | |
| namespace | util |
| namespace | util::log |
| namespace | BCLog |
Macros | |
| #define | LogPrintLevel_(category, level, should_ratelimit, ...) |
| #define | LogInfo(...) |
| #define | LogWarning(...) |
| #define | LogError(...) |
| #define | detail_LogIfCategoryAndLevelEnabled(category, 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::ShouldLog (Category category, Level level) |
| Return whether messages with specified category and level should be logged. | |
| void | util::log::Log (Entry entry) |
| Send message to be logged. | |
| template<typename... Args> | |
| void | LogPrintFormatInternal (SourceLocation &&source_loc, BCLog::LogFlags flag, BCLog::Level level, bool should_ratelimit, util::ConstevalFormatString< sizeof...(Args)> fmt, const Args &... args) |
| #define detail_LogIfCategoryAndLevelEnabled | ( | category, | |
| level, | |||
| ... ) |
| #define LogDebug | ( | category, | |
| ... ) |
| #define LogError | ( | ... | ) |
| #define LogInfo | ( | ... | ) |
| #define LogPrintLevel_ | ( | category, | |
| level, | |||
| should_ratelimit, | |||
| ... ) |
| #define LogTrace | ( | category, | |
| ... ) |
| #define LogWarning | ( | ... | ) |
|
inline |