diff --git a/doc/jsonrpc.md b/doc/jsonrpc.md index 4090e23e9..8b7c05ca7 100644 --- a/doc/jsonrpc.md +++ b/doc/jsonrpc.md @@ -869,6 +869,43 @@ Example response: } ~~~ +## log_clear_flag {#rpc_log_clear_flag} + +Disable logging for specific portions of the application. The list of possible +log flags can be obtained using the `log_get_flags` RPC and may be different +for each application. + +### Parameters + +Name | Optional | Type | Description +----------------------- | -------- | ----------- | ----------- +flag | Required | string | A log flag, or 'all' + +### Example + +Example request: + +~~~ +{ + "jsonrpc": "2.0", + "method": "log_clear_flag", + "id": 1, + "params": { + "flag": "all" + } +} +~~~ + +Example response: + +~~~ +{ + "jsonrpc": "2.0", + "id": 1, + "result": true +} +~~~ + ## log_enable_timestamps {#rpc_log_enable_timestamps} Enable or disable timestamps.