Firmware/API Docs/LUXminer commands
logs
Log collection
Logs
Description
The /logs/live endpoint was changed from WebSocket to a "regular" HTTP endpoint.
This endpoint now returns a paginated list of log lines, up to the most recent 1000 entries, on INFO level (includes INFO, WARN and ERROR). The page size, and the page can be specified by page_size and page, respectively.
Command
Examples
This example grabs the 6th page, and each page has 3 items.
Parameters
Parameter | Notes |
---|---|
page_size | The requested page size; should be the same value you specified in the query string |
page | The page number you want to request |
sort | Sort the data |
- asc : sorted entries, divided into pages from the start (Default) | |
- desc : same as asc , but backwards | |
- pagedesc : the order is unchanged, but the page split is backwards |