docker-bitcoind
docker-bitcoind copied to clipboard
How to change log settings for writing to a log file
Hi,
I'm running your docker bitcoin node.
The default output is logged to the console (stdout). But I want to log to a log file.
Digging into the bitcoin.conf
options and settings I found the below settings:
debuglogfile=/data/.bitcoin/debug.log
debug=1
printtoconsole=0
I have also checked this doc: https://www.bitcoinabc.org/doc/0.22.0/man/bitcoind/
This stops output to the console, but also generates no logfiles. Can you please assist on this how to get the output written to logfiles?
Many thx!
Jo
Hi,
This follows the same rules as the bitcoin core.
You have to map the users directory
Hi,
This follows the same rules as the bitcoin core.
You have to map the users directory
Thx for the quick reply!
Now starting the Docker I have this mapping:
volumes:
- ./bitcoin/data:/data/.bitcoin
Do I have to add another mapping here?
Jo