HomePhabricator

Add `-debuglogfile` option

Description

Add -debuglogfile option

Summary:
This patch adds an option to configure the name and/or directory of the
debug log.

The user can specify either a relative path, in which case the path
is relative to the data directory. They can also specify an absolute
path to put the log anywhere else in the file system.

Backport of core PR11781

Depends on D2393

Test Plan:

./test/functional/test_runner.py feature_logging

bitcoind -debuglogfile=<path_to_debug_file>

Check the debug file is at the given location

bitcoind -debuglogfile=<path_to_inexistant directory>

Check an error is output:

Error: Could not open debug log file

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: schancel

Differential Revision: https://reviews.bitcoinabc.org/D2394

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Nov 28 2017, 09:31
FabienCommitted on Jan 23 2019, 19:27
FabienPushed on Jan 23 2019, 19:27
Reviewer
Restricted Project
Differential Revision
D2394: Add `-debuglogfile` option
Parents
rABCde824307ecc9: Initial implementation of RadixTree
Branches
Unknown
Tags
Unknown

Event Timeline

Fabien committed rABCa31d8c0f1111: Add `-debuglogfile` option (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Jan 23 2019, 19:27