docker-bitcoind icon indicating copy to clipboard operation
docker-bitcoind copied to clipboard

How to change log settings for writing to a log file

Open jovana opened this issue 3 years ago • 2 comments

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

jovana avatar Dec 03 '21 09:12 jovana

Hi,

This follows the same rules as the bitcoin core.

You have to map the users directory

nolim1t avatar Dec 03 '21 09:12 nolim1t

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

jovana avatar Dec 03 '21 09:12 jovana