本頁面使用機器翻譯自英語,可能包含錯誤或不清楚的語言。如需最準確的信息,請參閱英文原文。由於更新頻繁,部分內容可能與英文原文有出入。請加入我們在 Crowdin 上的努力,幫助我們改進本頁面的翻譯。 (Crowdin translation page, Contributing guide)
[Logging] debug_verbosityByID
Sets the verbosity of log module with given ModuleID. Please note that VerbosityByID only works with zapLogger.
(ModuleID : Please refer to the code on the github. )
(Level : 0=crit, 1=error, 2=warn, 3=info, 4=debug, 5=trace)
The verbosity of individual packages and source files can be raised using debug_vmodule.
JSONRPC: debug_verbosityByID
Request
- application/json
Body
Array [
- Id
- Level
]
params
object[]
required
anyOf
The module id.
integer
The logging verbosity level.
integer
Responses
- 200
Return value null.
- application/json
- Schema
- Example (from schema)
Schema
error
object
result string
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": null
}
- curl
- python
- nodejs
- java
- Curl
curl -X 'POST' \
'https://public-en-kairos.node.kaia.io' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"method": "debug_verbosityByID",
"id": 1,
"jsonrpc": "2.0",
"params": [1, 3]
}'
- CURL
curl -L 'https://public-en-kairos.node.kaia.io/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"method": "debug_verbosityByID",
"id": 1,
"jsonrpc": "2.0",
"params": [
1,
3
]
}'
ResponseClear