logging

Input(s) 2

The logging RPC allows users to retrieve the current logging configuration and adjust it by specifying categories to include or exclude from debug logging. When called without arguments, it returns a list of categories with their current debug logging status. If called with arguments, it adds or removes categories from debug logging based on the specified include and exclude lists. Categories can be included or excluded individually, or using special keywords like 'all' and 'none'.

How is this used?

The logging RPC is used to manage the logging configuration in Bitcoin Core. It allows users to control which categories of events are logged for debugging purposes. By specifying categories to include or exclude, users can tailor the logging output to focus on specific areas of interest or to reduce verbosity. This is particularly useful for diagnosing issues, monitoring specific components, or optimizing performance. The ability to dynamically adjust the logging configuration provides flexibility in debugging and troubleshooting Bitcoin Core nodes.

Request

method

logging

include

Optional

exclude

Optional

Inputs(2)

include The categories to add to debug logging
exclude The categories to remove from debug logging

Result