Skip to content

Log

Logging RPC interface

Set the log level

1. log_setLevel

  • Usage:

  Set the log level

  • Params:

   1. log level("debug","0")

  • Return:none

  • Example:

shell:

curl http://localhost:10085 -X POST --data '{"jsonrpc":"2.0","method":"log_setLevel","params":["trace"], "id": 3}' -H "Content-Type:application/json"

cli:

drep-cli 127.0.0.1:10085 log_setLevel trace 3
  • Response:
{"jsonrpc":"2.0","id":3,"result":None}

2. log_setVmodule

  • Usage:

  Set the level by module

  • Params:

   1. module name (txpool=5)

  • Return:none

  • Example:

shell:

curl http://localhost:10085 -X POST --data '{"jsonrpc":"2.0","method":"log_setVmodule","params":["txpool=5"], "id": 3}' -H "Content-Type:application/json"

cli:

drep-cli 127.0.0.1:10085 log_setVmodule txpool=5 3
  • Response:
{"jsonrpc":"2.0","id":3,"result":None}