I want to see the logs of the JSON-RPC calls to geth (with all the details if possible). How can I do that? In this page, I have found a command line option:

--vmodule value Per-module verbosity: comma-separated list of = (e.g. eth/*=6,p2p=5)

However I don't know how it should like to achieve what I want.

1 Answer 1


In geth console:

// from `geth --help`:
//   --verbosity value         Logging verbosity: 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=detail (default: 3)
//   --vmodule value           Per-module verbosity: comma-separated list of <pattern>=<level> (e.g. eth/*=5,p2p=4)
> debug.vmodule('rpc=5')

Same should work from command-line:

geth --vmodule 'rpc=5'

This doesn't seem to be logging request contents, though.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.