Debug log for RPC access log

1

1

How can I enable RPC access debug log on my bitcoind. My application calls some commands to the bitcoind via RPC. I want to see all of RPC accesses with their parameters like command name and caller IP address as well if possible.

zono

Posted 2017-05-26T15:05:53.287

Reputation: 1 569

Answers

4

I found the way. I confirmed the logs are saved as I expected.

bitcoin.conf

debug=mempool
debug=rpc

zono

Posted 2017-05-26T15:05:53.287

Reputation: 1 569

Another way to enable debug log: put '-debug=<category>' as the command line parameter of bitcoind, <category> can be coindb, db, mempool, rpc and so on. For example: bitcoind -debug=rpcgary 2017-12-06T05:33:22.513