Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: ftc-c on June 28, 2014, 03:11:52 AM



Title: How to output information to debug.log file ?
Post by: ftc-c on June 28, 2014, 03:11:52 AM
I am testing the code, I encountered a problem. After starting the wallet, it automatically exits.
How to output information to debug.log file ?

debug.log
2014-06-28 02:46:53 LoadBlockIndexDB(): transaction index disabled
2014-06-28 02:46:53 Initializing databases...
2014-06-28 02:46:53 init message: Verifying blocks...
2014-06-28 02:46:53  block index  182ms
2014-06-28 02:46:53 init message: Loading wallet...

then bitcoin-qt.exe  automatically quit.


Title: Re: How to output information to debug.log file ?
Post by: Newar on June 28, 2014, 03:05:26 PM

Output to debug.log is default for Bitcoin Core.

Which OS? Which wallet? Which version? etc.


Title: Re: How to output information to debug.log file ?
Post by: grue on June 29, 2014, 03:46:26 AM
LogPrintf. prototype is the same as printf