#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.
|
| #define | detail_LogWithSrcLoc(category, level, ...) util::log::LogPrintFormatInternal(SourceLocation{__func__}, category, level, __VA_ARGS__) |
| |
| #define | LogInfo(...) detail_LogWithSrcLoc(BCLog::LogFlags::ALL, util::log::Level::Info, __VA_ARGS__) |
| |
| #define | LogWarning(...) detail_LogWithSrcLoc(BCLog::LogFlags::ALL, util::log::Level::Warning, __VA_ARGS__) |
| |
| #define | LogError(...) detail_LogWithSrcLoc(BCLog::LogFlags::ALL, util::log::Level::Error, __VA_ARGS__) |
| |
| #define | detail_LogIfCategoryAndLevelEnabled(category, shouldlog, level, ...) |
| |
| #define | LogDebug(category, ...) detail_LogIfCategoryAndLevelEnabled(category, util::log::ShouldDebugLog, util::log::Level::Debug, __VA_ARGS__) |
| |
| #define | LogTrace(category, ...) detail_LogIfCategoryAndLevelEnabled(category, util::log::ShouldTraceLog, util::log::Level::Trace, __VA_ARGS__) |
| |
|
| bool | util::log::ShouldDebugLog (Category category) |
| | Return whether messages with specified category should be debug logged. More...
|
| |
| bool | util::log::ShouldTraceLog (Category category) |
| | Return whether messages with specified category should be trace logged. More...
|
| |
| void | util::log::Log (Entry entry) |
| | Send message to be logged. More...
|
| |
| 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) |
| |
◆ detail_LogIfCategoryAndLevelEnabled
| #define detail_LogIfCategoryAndLevelEnabled |
( |
|
category, |
|
|
|
shouldlog, |
|
|
|
level, |
|
|
|
... |
|
) |
| |
Value: do { \
if (shouldlog(category)) { \
} \
} while (0)
constexpr NoRateLimitTag NO_RATE_LIMIT
Definition at line 135 of file log.h.
◆ detail_LogWithSrcLoc
◆ LogDebug
◆ LogError
◆ LogInfo
◆ LogTrace
◆ LogWarning