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.

1
  • Have you set the right -debug option in your bitcoin.conf?
    – Nick ODell
    Oct 24, 2015 at 19:53

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.