LogPrint() output location?

1

1

Where can I check the output logs generated from LogPrint() statements in the bitcoind source code.

PS: Please do not confuse this with the LogPrintf() statement, which logs the output into debug.log file.

bawejakunal

Posted 2015-10-24T14:13:06.113

Reputation: 467

Have you set the right -debug option in your bitcoin.conf?Nick ODell 2015-10-24T19:53:59.003

Answers

4

LogPrint and LogPrintf are very similar.

Mind the definiton: #define LogPrintf(...) LogPrint(NULL, __VA_ARGS__)

LogPrint's will only end up in your debug.log when enabling the corresponding category. Enabling works over the -debug arg.

-debug=mempool,net would output all LogPrint("mempool",...) or LogPrint("net",...) to the debug log, or to stdout if -printtoconsole has been enabled.

Jonas Schnelli

Posted 2015-10-24T14:13:06.113

Reputation: 5 465