Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jovana opened this issue Dec 3, 2021 · 2 comments
Open

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

jovana opened this issue Dec 3, 2021 · 2 comments

Comments

@jovana
Copy link

jovana commented Dec 3, 2021

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
Copy link
Member

nolim1t commented Dec 3, 2021

Hi,

This follows the same rules as the bitcoin core.

You have to map the users directory

@jovana
Copy link
Author

jovana commented Dec 3, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants