You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/rpc-reference/rpc.md
+163
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,8 @@ TLS certificates are used to secure the communication.
18
18
- Harvester: 8560
19
19
- Wallet: 9256
20
20
- DataLayer: 8562
21
+
- Crawler: 8561
22
+
- Timelord: 8557
21
23
22
24
### HTTP/JSON
23
25
@@ -181,3 +183,164 @@ Each service is composed of a managed object, an API for control, and an RPC API
181
183
-**Managed Objects**: This column details the core entities or components that each service oversees.
182
184
-**Associated API**: This column specifies the API class associated with each service. This API class defines the interface for interacting with the corresponding managed objects.
183
185
-**Associated RPC API**: This column lists the RPC API class associated with each service. This RPC API class allows for remote control of the managed objects through Remote Procedure Calls (RPC).
186
+
187
+
## Log Levels
188
+
189
+
Added in version 2.5.1, the below RPCs are for interacting with log levels for the various services while they are running running.
190
+
191
+
### `get_log_level`
192
+
193
+
Functionality: Get the services current log level
194
+
195
+
Usage: chia rpc [SERVICE] get_log_level
196
+
197
+
Options:
198
+
199
+
| Short Command | Long Command | Type | Required | Description |
| STRING | True | The service to query for its log level; valid examples include: "crawler", "data_layer", "farmer", "full_node", "harvester", "timelord", "wallet" |
209
+
210
+
Request Parameters: None
211
+
212
+
<details>
213
+
<summary>Example</summary>
214
+
215
+
```json
216
+
chia rpc wallet get_log_level
217
+
```
218
+
219
+
Response:
220
+
221
+
```json
222
+
{
223
+
"available_levels": [
224
+
"CRITICAL",
225
+
"FATAL",
226
+
"ERROR",
227
+
"WARN",
228
+
"WARNING",
229
+
"INFO",
230
+
"DEBUG",
231
+
"NOTSET"
232
+
],
233
+
"level": "WARNING",
234
+
"success": true
235
+
}
236
+
```
237
+
238
+
</details>
239
+
240
+
### `set_log_level`
241
+
242
+
Functionality: Set the services current log level
243
+
244
+
Usage: chia rpc [SERVICE] set_log_level
245
+
246
+
Options:
247
+
248
+
| Short Command | Long Command | Type | Required | Description |
0 commit comments