Page MenuHomePhabricator

logging: add -loglevelalways=1 option
ClosedPublic

Authored by PiRK on Jun 19 2025, 13:08.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC17e3f6172685: logging: add -loglevelalways=1 option
Summary

This option tells the logging system to always include a "[cat:level]"
prefix, so [net] becomes [net:debug], LogInfo/LogPrint statements will have
an [all:info] prefix, and LogWarning and LogError logs will become
[all:warning] and [all:error]. This may be easier for automated parsing
of logs, particularly if additional prefixes such as thread or source
location are enabled.

This is a partial backport of core#28318
https://github.com/bitcoin/bitcoin/pull/28318/commits/fbd7642c8e5b70327e019382320f5ef0a651ecc5

Depends on D18273

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable