feat: file logging on client, logs command to fetch last N lines
This commit is contained in:
parent
23bbb5b603
commit
db3fa9f416
6 changed files with 130 additions and 9 deletions
|
|
@ -17,6 +17,8 @@ pub enum ServerMessage {
|
|||
ScreenshotRequest { request_id: Uuid },
|
||||
/// Capture a specific window by its HWND (works even if behind other windows)
|
||||
WindowScreenshotRequest { request_id: Uuid, window_id: u64 },
|
||||
/// Fetch the last N lines of the client log file
|
||||
LogsRequest { request_id: Uuid, lines: u32 },
|
||||
/// Show a MessageBox on the client asking the user to do something.
|
||||
/// Blocks until the user clicks OK — use this when you need the user
|
||||
/// to perform a manual action before continuing.
|
||||
|
|
@ -122,6 +124,11 @@ pub enum ClientMessage {
|
|||
version: String,
|
||||
commit: String,
|
||||
},
|
||||
LogsResponse {
|
||||
request_id: Uuid,
|
||||
content: String,
|
||||
log_path: String,
|
||||
},
|
||||
/// Response to a download request
|
||||
DownloadResponse {
|
||||
request_id: Uuid,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue