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: nettormempoolhttpbenchzmqwalletdbrpcestimatefeeaddrmanselectcoinsreindexcmpctblockrandprune,

proxymempoolrejlibeventcoindbqtleveldbvalidation.

Additionally, the following have special meanings:

Argument #1 – include

Type: json array, optional

The categories to add to debug logging

[
  "include_category",    (string) the valid logging category
  ...
]

Argument #2 – exclude

Type: json array, optional

The categories to remove from debug logging

[
  "exclude_category",    (string) the valid logging category
  ...
]

Result

{                             (json object) keys are the logging categories, and values indicates its status
  "category" : true|false,    (boolean) if being debug logged or not. false:inactive, true:active
  ...
}

Examples

bitcoinevo-cli logging "[\"all\"]" "[\"http\"]"
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "logging", "params": [["all"], ["libevent"]]}' -H 'content-type: text/plain;' http://127.0.0.1:7332/