Make new logging macros LogDebug()
, LogTrace()
, LogInfo()
, LogWarning()
, and LogError()
compatible with wallet code and drop custom WalletLogPrintf() function. The new logging macros introduced in #28318 weren’t previously useful in wallet code because wallet code prefixes most log messages with the wallet names to be be able to distinguish log output from multiple wallets. Fix this by introducing a new WalletLogSource
class inheriting from BCLog::Source
which can include the wallet name in log messages.
This is based on #29256. The non-base commits are: