logging
logging (
- “all”, “1” : represent all logging categories.
- “none”, “0” : even if other logging categories are specified, ignore all of them.
Arguments:
- “include” (array of strings, optional) A json array of categories to add debug logging [ “category” (string) the valid logging category ,… ]
- “exclude” (array of strings, optional) A json array of categories to remove debug logging [ “category” (string) the valid logging category ,… ]
Result: { (json object where keys are the logging categories, and values indicates its status “category”: 0|1, (numeric) if being debug logged or not. 0:inactive, 1:active … }
Examples:
bitcoin-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:8332/