Bitcoin Core logging facilities: log categories and their bit flags.

Types

Name

Description

LogRateLimiter

Fixed window rate limiter for logging.

Logger

Central logger that formats entries and writes them to the console, a file and callbacks.

Timer

RAII‐style object that outputs timing information to logs.

Type Aliases

Name

Description

CategoryMask

Bit mask holding a set of BCLog::LogFlags log categories.

Level

Alias for compatibility. Prefer util::log::Level over BCLog::Level in new code.

Enums

Name

Description

LogFlags

Debug logging categories, each a distinct bit in a CategoryMask.

Variables

Name

Description

DEFAULT_LOGRATELIMIT

Default for whether log rate limiting is enabled.

DEFAULT_LOG_LEVEL

Default global log severity level.

DEFAULT_MAX_LOG_BUFFER

buffer up to 1MB of log data prior to StartLogging

RATELIMIT_MAX_BYTES

maximum number of bytes per source location that can be logged within the rate‐limit window

RATELIMIT_WINDOW

time window after which log ratelimit stats are reset

Created with MrDocs