diff --git a/doc/jsonrpc.md b/doc/jsonrpc.md index f2d1abca6..f951d2c14 100644 --- a/doc/jsonrpc.md +++ b/doc/jsonrpc.md @@ -708,6 +708,42 @@ Example response: } ~~~ +## log_set_print_level {#rpc_log_set_print_level} + +Set the current level at which output will additionally be +sent to the current console. + +### Parameters + +Name | Optional | Type | Description +----------------------- | -------- | ----------- | ----------- +level | Required | string | ERROR, WARNING, NOTICE, INFO, DEBUG + +### Example + +Example request: + +~~~ +{ + "jsonrpc": "2.0", + "method": "log_set_print_level", + "id": 1, + "params": { + "level": "ERROR" + } +} +~~~ + +Example response: + +~~~ +{ + "jsonrpc": "2.0", + "id": 1, + "result": true +} +~~~ + ## log_enable_timestamps {#rpc_log_enable_timestamps} Enable or disable timestamps.