Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: chu_11 on January 17, 2017, 08:09:45 AM



Title: printtoconsole command
Post by: chu_11 on January 17, 2017, 08:09:45 AM
hello!

in  regtest  what does printtoconsole in the command 'bitcoind -regtest -daemon -printtoconsole' do? what is its function ?


Title: Re: printtoconsole command
Post by: ranochigo on January 17, 2017, 08:28:13 AM
Bitcoind, by default, will always write the log into a file, that is called debug.log.

By using this flag, all the logs will be sent to the console instead of debug.log. You don't have to open debug.log to check anything regarding the client in this case.