HomePhabricator

logging: add -loglevelalways=1 option

Description

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

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D18274

Details

Provenance
Anthony Towns <aj@erisian.com.au>Authored on Sep 12 2023, 04:27
PiRKCommitted on Jun 20 2025, 08:41
PiRKPushed on Jun 20 2025, 08:41
Reviewer
Restricted Project
Differential Revision
D18274: logging: add -loglevelalways=1 option
Parents
rABC77368aacdc15: logging: treat BCLog::ALL like BCLog::NONE
Branches
Unknown
Tags
Unknown