logging
logging ( ["include_category",...] ["exclude_category",...] )
Gets or sets the logging configuration.
When no argument is provided, it returns a list of logging categories with their current debug log status.
When called with arguments, it adds or removes categories from the debug logging and returns the updated lists.
The arguments are evaluated in the order “include” first, then “exclude.”
If a category is both included and excluded, it will end up excluded.
Valid logging categories include: net
, tor
, mempool
, http
, bench
, zmq
, walletdb
, rpc
, estimatefee
, addrman
, selectcoins
, reindex
, cmpctblock
, rand
, prune
,
proxy
, mempoolrej
, libevent
, coindb
, qt
, leveldb
, validation
.
Additionally, the following have special meanings:
-
"all"
,"1"
: represent all logging categories. -
"none"
,"0"
: ignore all categories, even if others are specified.
Argument #1 – include
Type: json array, optional
The categories to add to debug logging
Argument #2 – exclude
Type: json array, optional
The categories to remove from debug logging