lncm / lncm/docker-bitcoind

How to change log settings for writing to a log file

Open
#62 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
107
Forks
39
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the listed bitcoin.conf options and the linked bitcoind documentation. Determine how this Docker image handles stdout and file logging, then document a working configuration whose completion criterion is output appearing in the intended log file.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
devops
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.