logging

Back to control

Summary

Gets and sets the logging configuration.

Description

Gets and sets the logging configuration. When called without an argument, returns the list of categories with status that are currently being debug logged or not. When called with arguments, adds or removes categories from debug logging and return the lists above. The arguments are evaluated in order "include", "exclude". If an item is both included and excluded, it will thus end up being excluded. The valid logging categories are: addrman, bench, blockstorage, cmpctblock, coindb, estimatefee, http, i2p, ipc, leveldb, libevent, mempool, mempoolrej, net, proxy, prune, qt, rand, reindex, rpc, scan, selectcoins, tor, txpackages, txreconciliation, validation, walletdb, zmq In addition, the following are available as category names with special meanings: - "all", "1" : represent all logging categories.

Arguments

  • include (ARR): The categories to add to debug logging
  • include_category (STR): the valid logging category
  • exclude (ARR): The categories to remove from debug logging
  • exclude_category (STR): the valid logging category

Results

  • value (OBJ_DYN): keys are the logging categories, and values indicates its status
  • category (BOOL): if being debug logged or not. false:inactive, true:active

Examples

qbit-cli logging "[\"all\"]" "[\"http\"]"
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "logging", "params": [["all"], ["libevent"]]}' -H 'content-type: application/json' http://127.0.0.1:8352/