UNPKG

bitcoin-cli-ts

Version:

Auto-generated Bitcoin client library for bitcoind JSON-RPC API

25 lines (24 loc) 1.42 kB
"use strict"; // Auto synced from github actions. Don't change this file Object.defineProperty(exports, "__esModule", { value: true }); exports.logging = void 0; var tslib_1 = require("tslib"); var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request")); /** * logging ( ["include_category",...] ["exclude_category",...] ) * * 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. * */ function logging(params) { var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]); return (0, rpc_request_1.default)({ method: 'logging', params: methodParams }, bitcoind); } exports.logging = logging;