lncm / docker-bitcoind

Flexible multi-arch (amd & amd64) Bitcoin Core Docker image
https://hub.docker.com/r/lncm/bitcoind
MIT License
101 stars 34 forks source link

How to change log settings for writing to a log file #62

Open jovana opened 2 years ago

jovana commented 2 years ago

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

nolim1t commented 2 years ago

Hi,

This follows the same rules as the bitcoin core.

You have to map the users directory

jovana commented 2 years ago

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