logging

hidden

v0.15.1

logging [include,...] 
Gets and sets the logging configuration.
When called without an argument, returns the list of categories that are currently being debug logged.
When called with arguments, adds or removes categories from debug logging.
The valid logging categories are: " + ListLogCategories() + "
libevent logging is configured on startup and cannot be modified by this RPC during runtime.Arguments:
1. "include" (array of strings) add debug logging for these categories.
2. "exclude" (array of strings) remove debug logging for these categories.

Result: (string): a list of the logging categories that are 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/
Don't trust. Verify. Docs extracted from src/rpc/misc.cpp#L584-L601.