2

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
  • 507
  • 2
  • 10

1 Answers1

6

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
  • 5,992
  • 1
  • 20
  • 33