0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-02 09:46:52 -05:00

Update debug logging section in the developer notes

This commit is contained in:
Jon Atack 2022-08-20 11:09:09 +02:00
parent 1abaa31aa3
commit 9580480570

View file

@ -386,8 +386,10 @@ Run configure with the `--enable-gprof` option, then make.
If the code is behaving strangely, take a look in the `debug.log` file in the data directory; If the code is behaving strangely, take a look in the `debug.log` file in the data directory;
error and debugging messages are written there. error and debugging messages are written there.
The `-debug=...` command-line option controls debugging; running with just `-debug` or `-debug=1` will turn Debug logging can be enabled on startup with the `-debug` and `-loglevel`
on all categories (and give you a very large `debug.log` file). configuration options and toggled while bitcoind is running with the `logging`
RPC. For instance, launching bitcoind with `-debug` or `-debug=1` will turn on
all log categories and `-loglevel=trace` will turn on all log severity levels.
The Qt code routes `qDebug()` output to `debug.log` under category "qt": run with `-debug=qt` The Qt code routes `qDebug()` output to `debug.log` under category "qt": run with `-debug=qt`
to see it. to see it.